Re: [codenameone-discussions] Re: Netbeans and Maven

2021-07-20 Thread Steve Hannah
Not sure exactly why this would be happening, but this SO thread sounds
similar, and suggests that there are some maven config things that you can
try to fix it.
https://stackoverflow.com/questions/7819163/maven-failed-to-retrieve-plugin-descriptor-error

Steve

On Mon, Jul 19, 2021 at 8:21 PM Shai Almog  wrote:

> The plugin is no longer applicable with Maven so that's OK. Not sure about
> the problem in NetBeans, we'll need to check.
>
> On Monday, July 19, 2021 at 11:07:01 PM UTC+3 mcw wrote:
>
>>
>> I have been away from CodenameOne for months and am just getting back.
>> Everything has changed and I am trying to convert my projects to Maven
>>
>> I am running Netbeans 8.2 on Kubuntu 20.04
>> I have the CodenameOne plugin 7.0
>>
>> I downloaded the latest version of the migration tool, 1.0.3 and
>> converted my project I got a Success message.
>>
>> I opened my project in Netbeans, the first thing I noticed was that the
>> project icon said it was a Netbeans project not a CodenameOne project. The
>> CodenameOne menu item was missing. I tried to build the project but it
>> failed:
>>
>> cd /rware/src/rware_mobile/cn1/rwmain; JAVA_HOME=/opt/jdk1.8.0_292
>> /opt/netbeans-8.2/java/maven/bin/mvn -f
>> /rware/src/rware_mobile/cn1/rwmain/pom.xml install
>> Scanning for projects...
>>
>> Some problems were encountered while building the effective model for
>> com.readerware.xware.readerware:rwmain-common:jar:1.0-SNAPSHOT
>> 'build.plugins.plugin.version' for
>> org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 300,
>> column 21
>>
>> It is highly recommended to fix these problems because they threaten the
>> stability of your build.
>>
>> For this reason, future Maven versions might no longer support building
>> such malformed projects.
>>
>> 
>> Reactor Build Order:
>>
>> rwmain
>> rwmain-cn1libs
>> cn1-codescan
>> rwmain-common
>>
>> 
>> Building rwmain 1.0-SNAPSHOT
>> 
>> Downloading:
>> http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pom
>>
>> 
>> Reactor Summary:
>>
>> rwmain  FAILURE [0.392s]
>> rwmain-cn1libs  SKIPPED
>> cn1-codescan .. SKIPPED
>> rwmain-common . SKIPPED
>> 
>> BUILD FAILURE
>> 
>> Total time: 0.505s
>> Finished at: Mon Jul 19 12:51:30 PDT 2021
>> Final Memory: 7M/119M
>> 
>> Plugin org.apache.maven.plugins:maven-install-plugin:2.3.1 or one of its
>> dependencies could not be resolved: Failed to read artifact descriptor for
>> org.apache.maven.plugins:maven-install-plugin:jar:2.3.1: Could not transfer
>> artifact org.apache.maven.plugins:maven-install-plugin:pom:2.3.1 from/to
>> central (http://repo.maven.apache.org/maven2): Failed to transfer file:
>> http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pom.
>> Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]
>>
>> To see the full stack trace of the errors, re-run Maven with the -e
>> switch.
>> Re-run Maven using the -X switch to enable full debug logging.
>>
>> For more information about the errors and possible solutions, please read
>> the following articles:
>> [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
>>
>> Any idea what I am doing wrong?
>>
>> I also used the Codename One initializr to build the Bare-bones Java
>> App, same problem in Netbeans. When I tried to run it from the command
>> line, it worked.
>>
>> Thanks,
>>
>> Martin
>>
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroup

Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-07-02 Thread Steve Hannah
x27;t include the error file from the cloud build because it
>>>>>>>>>> was so long but nevertheless I've attached it below.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Wednesday, June 23, 2021 at 9:50:50 PM UTC-4 Shai Almog wrote:
>>>>>>>>>>
>>>>>>>>>>> Where's the rest of the error log?
>>>>>>>>>>> Also you didn't implement the native code for each of the native
>>>>>>>>>>> platforms e.g. Android would have its own impl file and so would 
>>>>>>>>>>> iOS.
>>>>>>>>>>> Did you look at the How Do I video tutorial for native
>>>>>>>>>>> interfaces? It's pre-maven but should cover all of this.
>>>>>>>>>>>
>>>>>>>>>>> On Thursday, June 24, 2021 at 1:19:17 AM UTC+3 a2nd...@gmail.com
>>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> I forgot to add the code used to test it:
>>>>>>>>>>>>
>>>>>>>>>>>> if(cn != null && cn.isSupported()) {
>>>>>>>>>>>> rv = cn.doInNative("string");
>>>>>>>>>>>> Log.p(rv);
>>>>>>>>>>>> }
>>>>>>>>>>>>
>>>>>>>>>>>> which returns "Dummy" as expected.
>>>>>>>>>>>> ---
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Wednesday, June 23, 2021 at 6:15:12 PM UTC-4 Dennis Rogers
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> I'm at a loss in trying to do a native interface. I created
>>>>>>>>>>>>> the class "MyNative"
>>>>>>>>>>>>>
>>>>>>>>>>>>> package com.symdesign.myapp;
>>>>>>>>>>>>>
>>>>>>>>>>>>> import com.codename1.system.NativeInterface;
>>>>>>>>>>>>>
>>>>>>>>>>>>> public interface MyNative extends NativeInterface {
>>>>>>>>>>>>> public String doInNative(String hi);
>>>>>>>>>>>>> }
>>>>>>>>>>>>>
>>>>>>>>>>>>> Then I ran the tool "create native interfaces" which created
>>>>>>>>>>>>> the file "MyNativeImpl.java" in the javase folder which
>>>>>>>>>>>>> I modified to:
>>>>>>>>>>>>>
>>>>>>>>>>>>> package com.symdesign.myapp;
>>>>>>>>>>>>>
>>>>>>>>>>>>> public class MyNativeImpl implements
>>>>>>>>>>>>> com.symdesign.shoppinggenie.MyNative{
>>>>>>>>>>>>> public String doInNative(String param) {
>>>>>>>>>>>>> return "Dummy";
>>>>>>>>>>>>> }
>>>>>>>>>>>>>
>>>>>>>>>>>>> public boolean isSupported() {
>>>>>>>>>>>>> return true;
>>>>>>>>>>>>> }
>>>>>>>>>>>>> }
>>>>>>>>>>>>>
>>>>>>>>>>>>> If I run this in the simulator it seems to work ok, but when I
>>>>>>>>>>>>> compile it to the cloud I get an error file with the error at the 
>>>>>>>>>>>>> top:
>>>>>>>>>>>>>
>>>>>>>>>>>>> Found hyp.beamId
>>>>>>>>>>>>> Tried to start hyperlog but failed: Failed to start hyperlog:
>>>>>>>>>>>>> Cannot run program "hyp": error=2, No such file or directory
>>>>>>>>>>>>> User-le

Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-06-16 Thread Steve Hannah
Add the following to the dependences section of your javase/pom.xml file:


com.codenameone
codenameone-core
provided



That should fix the issue.  (Mind you you haven't shared any error
messages so it's hard to say what your specific problem is).


Steve


On Tue, Jun 15, 2021 at 9:30 PM Dennis Rogers  wrote:

> Since I added the generated the native interface I can no longer do cloud
> builds. Is there a way I can remove the native interface I created for the
> moment?
>
> On Monday, June 14, 2021 at 10:09:56 PM UTC-4 Shai Almog wrote:
>
>> That sounds like a bug in the maven project. Let me check.
>>
>> On Tuesday, June 15, 2021 at 12:00:09 AM UTC+3 a2nd...@gmail.com wrote:
>>
>>> Sorry but I'm a little confused. I created a file, MyNative.java, in the
>>> common folder along with my other code:
>>>
>>> package com.symdesign.shoppinggenie;
>>>
>>> import com.codename1.system.NativeInterface;
>>> public interface MyNative extends NativeInterface {
>>>  String helloWorld(String hi);
>>> }
>>>
>>> When I run "Generate Native Interfaces" I get the error "cannot access
>>> com.codename1.system.NativeInterface" but nevertheless
>>> it creates a file in MyProject/src/main/java/com.symdesign/myproject/
>>> called MyNativeImpl.java which looks like the advertised stub. (Is it in
>>> this file that I should put my native code? )
>>>
>>>
>>> On Sunday, June 13, 2021 at 9:37:18 PM UTC-4 Shai Almog wrote:
>>>
>>>> On which file?
>>>> notice that the native side shouldn't include the native interface, it
>>>> should only be in common.
>>>>
>>>> On Monday, June 14, 2021 at 1:08:30 AM UTC+3 a2nd...@gmail.com wrote:
>>>>
>>>>> I generated the native interface but when I try to build it, it says
>>>>> it can't find com.codename1.system.NativeInterface.
>>>>>
>>>>> On Saturday, June 12, 2021 at 9:41:08 PM UTC-4 Shai Almog wrote:
>>>>>
>>>>>> The plugin is only applicable to Ant projects not to maven projects.
>>>>>> For maven Generate Native Interfaces is one of the run configurations.
>>>>>> On Sunday, June 13, 2021 at 12:01:09 AM UTC+3 a2nd...@gmail.com
>>>>>> wrote:
>>>>>>
>>>>>>> I'm trying to create a native interface to access android's
>>>>>>> SpeechRecognitionHelper. Following the manual I created andinterface 
>>>>>>> that
>>>>>>> extends NativeInterface i.e.
>>>>>>>
>>>>>>> import com.codename1.system.NativeInterface;
>>>>>>>
>>>>>>> public interface MyNative extends NativeInterface {
>>>>>>> String getSpeech(String hi);
>>>>>>> }
>>>>>>>
>>>>>>> The manual then says I can generate initial native code by right
>>>>>>> clicking on the interface and selecting "Generate Native Access" . This
>>>>>>> option doesn't seem to be available in my setup and I don't know where 
>>>>>>> to
>>>>>>> go from here.
>>>>>>>
>>>>>>> -Dennis
>>>>>>>
>>>>>>> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/5676afcc-c439-4018-a258-573ffc9fb6f6n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/5676afcc-c439-4018-a258-573ffc9fb6f6n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXiNVStx-up%3DsCk1_7gexOU0m6XEfgfohoULxu_9miZxA%40mail.gmail.com.


Re: [codenameone-discussions] Re: Unable to restart the IEHS App

2021-06-08 Thread Steve Hannah
What IDE ate you using?  you may need to enable error reporting (-e) in the
maven command to see the full stack trace of the error.

On Tue, Jun 8, 2021 at 11:11 AM Dennis Rogers  wrote:

> Tried that but no joy.  Any other suggestions?
>
> On Monday, June 7, 2021 at 9:20:59 PM UTC-4 Shai Almog wrote:
>
>> Try killing Java processes and see if it solves the issue.
>>
>> On Tuesday, June 8, 2021 at 1:05:53 AM UTC+3 a2nd...@gmail.com wrote:
>>
>>> Suddenly I've not been able to send builds to the cloud. Nothings
>>> changed in the code and I get the error :
>>>
>>> Failed to execute goal
>>> com.codenameone:codenameone-maven-plugin:7.0.26:build (build-android) on
>>> project shoppinggenie-android: Execution build-android of goal
>>> com.codenameone:codenameone-maven-plugin:7.0.26:build failed: !!! Unable to
>>> restart the IEHS App !!!
>>>
>>> Is this an authorization problem ? -Dennis
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/cb10ca40-5407-44b1-91e9-5fb96b2cdb24n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/cb10ca40-5407-44b1-91e9-5fb96b2cdb24n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKUai7Tm_GKMNdySiaRqKCACFkV4dAn7uRy53vqATjd8EA%40mail.gmail.com.


Re: [codenameone-discussions] Can't get ios certificate after maven

2021-05-21 Thread Steve Hannah
You can access the certificate wizard through codename one settings still.
See https://shannah.github.io/codenameone-maven-manual/#settings

On Fri, May 21, 2021 at 11:39 AM Dennis Rogers  wrote:

> I've migrated to maven and have been able to do android device installs
> but when I try to do a IOS install it says I need a certificate. I had
> generated a certificate before I moved to maven.
> Unfortunately I can't find the certificate wizard I used before. Has it
> moved ? -Dennis
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/67821b1e-8352-40d0-9ade-75a5d1ba1e01n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/67821b1e-8352-40d0-9ade-75a5d1ba1e01n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWT6vp6f7-4%2BOfg9hZTSQe%3DsHSGuH2Lp1%2BC%3DWUFtx6%2BRg%40mail.gmail.com.


Re: [codenameone-discussions] CocoaPods command not found from Maven on Linux (CocoaPods is successfully installed)

2021-05-21 Thread Steve Hannah
Linux isn't a supported platform for the Xcode project target.  The process
assumes that it is running on a Mac with Xcode.  Installing cocoapods on
Linux won't work around this.  It requires a mac.

On Fri, May 21, 2021 at 3:24 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> I installed ruby and CocoaPods on my Linux system (Arch Garuda) to be able
> to create the XCode snapshot project for my app. This could allow me to
> just run XCode and iOS simulator on OSX, creating the project on Linux.
>
> I launched the local build for XCode but
> I got
>
> Please install Cocoapods in order to generate Xcode projects.  E.g.
> 'sudo gem install cocoapods'.  See https://cocoapods.org/
> java.io.IOException: Cannot run program "/usr/local/bin/pod" (in directory
> "."):
>
> the pod command is recognized from terminal
> but it seems that
> the internal configuration of maven files points to another location.
> It is reasonable. This is an attempt to use cocoapods on Linux, but until
> XCode is involved, it could work.
> Am I wrong?
> How to change the maven settings so that it call the right commands?
> If it is not directly possible, could it be possible with some
> modifications from CodenameOne part?
> Thanks in advance
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/ca599f54-04db-4155-8245-600b4acbc3een%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/ca599f54-04db-4155-8245-600b4acbc3een%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKUrY2r-WM0z6_y%2B2%3DBJTU36ZKEXN4tFGV6p1%2Bx-wQhMDg%40mail.gmail.com.


Re: [codenameone-discussions] Maven system failing when creating the CEF environment?

2021-05-11 Thread Steve Hannah
The error you posted is specific to linux.  The Catalina error will be
different.

Update your Codename One version to 7.0.26 by changing the cn1.version and
cn1.plugin.version properties in your pom.xml file.  That will get it
working on Catalina.
Since it will cause a fresh version of CEF to be downloaded, it may also
fix the linux version, but it is possible that the linux issue is deeper -
probably a result of changing the JDK version that you are using to run it.



On Tue, May 11, 2021 at 9:29 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

>
> I am experiencing strange malfunctioning on different environments like
> below.
> I am wondering if this can be caused by modifications on server side.
> Although I am compiling locally, it suddenly started failing on both
> environments: linux manjaro, and OSX catilina.
> I do not know if when compiling for CN simulator there are some server
> downloads and processing by the maven system to create some CEF folders,
> but this could be the only explaining.
>
> [EDT] 0:0:0,613 - Attempting to create browser component
> [AWT-EventQueue-0] 0:0:0,616 - Attempting to create browser component
> [EDT] 0:0:0,684 - Exception: java.lang.UnsatisfiedLinkError -
> /home/pc/.m2/repository/com/codenameone/codenameone-cef/84.4.1-M2/codenameone-cef-84.4.1-M2-linux64.zip-extracted/lib/linux64/libjcef.so:
> /home/pc/.m2/repository/com/codenameone/codenameone-cef/84.4.1-M2/codenameone-cef-84.4.1-M2-linux64.zip-extracted/lib/linux64/libjawt.so:
> undefined symbol: awt_SynthesizeWindowActivation
> [EDT] 0:0:0,693 - Exception: java.lang.RuntimeException - Failed to create
> CEF browser
> java.lang.UnsatisfiedLinkError:
> /home/pc/.m2/repository/com/codenameone/codenameone-cef/84.4.1-M2/codenameone-cef-84.4.1-M2-linux64.zip-extracted/lib/linux64/libjcef.so:
> /home/pc/.m2/repository/com/codenameone/codenameone-cef/84.4.1-M2/codenameone-cef-84.4.1-M2-linux64.zip-extracted/lib/linux64/libjawt.so:
> undefined symbol: awt_SynthesizeWindowActivation
>
> please see full log in attachment
>
> Thanks in advance
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/1b56b697-2047-4680-97d9-adddaf000a28n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/1b56b697-2047-4680-97d9-adddaf000a28n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVLoNW%3DuCNO%2BYn1hMPs79h4%3DZQ9heLY22oMOOA53V%2B1_g%40mail.gmail.com.


Re: [codenameone-discussions] Cannot run project after maven migration

2021-05-10 Thread Steve Hannah
Looks like the QRScanner lib includes its own copies of the cn1-codescan
classes, which makes it conflict.
https://github.com/littlemonkeyltd/QRScanner/tree/master/src/com/codename1/ext/codescan

This is problematic.  I'm not sure if the solution is that it no longer
depends on cn1-codescan (i.e. remove the cn1-codescan dependency), or if
those classes need to renamed in the QRScanner lib, or if those classes
need to be removed in the QRScanner lib.

The compliance check complains about duplicate classes because it uses
proguard - and I haven't figured out a way to tell it *not* to complain
about this.  But it is technically correct.   Having duplicates is going to
bite you down the road, especially since they probably aren't identical, so
behaviour is undefined.

You can "turn off" the compliance check by looking for
"compliance-check" in your common/pom.xml file, but this is
not a good long-term solution since that disables compile-time checks for
compliance with supported APIs, and it may just kick the can to the build
server.

Judging by the QRCodescanner lib repo, I suspect there will be other
problems as it hasn't been updated in 5 years.  It is highly likely that it
some other aspects may run afoul of current Google and iOS
appstore acceptance standards.

On Mon, May 10, 2021 at 7:27 AM Carlos Verdier  wrote:

> No Just one entry:
>
> 
> 
> 
> com.codenameone
> codenameone-core
> provided
> 
>
> 
>   review-QRScanner
>   com.yourappeasy.reviewer
>   1.0-SNAPSHOT
>   pom
> 
>
> 
>   review-CN1CircleProgress
>   com.yourappeasy.reviewer
>   1.0-SNAPSHOT
>   pom
> 
>
> 
>   review-ZipSupport
>   com.yourappeasy.reviewer
>   1.0-SNAPSHOT
>   pom
> 
>
> 
>   review-Connectivity
>   com.yourappeasy.reviewer
>   1.0-SNAPSHOT
>   pom
> 
>
> 
>   review-cn1-codescan
>   com.yourappeasy.reviewer
>   1.0-SNAPSHOT
>   pom
> 
>
> 
>   review-AnimatedGifSupport
>   com.yourappeasy.reviewer
>   1.0-SNAPSHOT
>   pom
> 
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/b95949d5-10f6-4391-bb93-e78d94e0d52bn%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/b95949d5-10f6-4391-bb93-e78d94e0d52bn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKW%2BHr20SY%3Dp_xGEf8mMZX%3DXTk0q%3DCZsbnNPYLxjW67uqw%40mail.gmail.com.


Re: [codenameone-discussions] Cannot run project after maven migration

2021-05-10 Thread Steve Hannah
Do you have multiple dependencies for the codescanner lib?  Check the
dependencies section of your common/pom.xml file to make sure you don't
have duplicates.

On Mon, May 10, 2021 at 7:09 AM Carlos Verdier  wrote:

> Thanks
>
> Now the error has changed:
>
> Error: Can't write [/Users/carlos/Proyectos
> CodenameOne/review/common/target/compliance-check.jar] (Can't read
> [/Users/carlos/Proyectos
> CodenameOne/review/cn1libs/cn1-codescan/jars/main.zip(;;;!META-INF/**)]
> (Duplicate jar entry [com/codename1/ext/codescan/NativeCodeScanner.class]))
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/CAD3JTfgj9%3Dmbg5gkV8UaKo5Vv8JmFWvizqx4fs7BwvfZ%2B8h%2Brg%40mail.gmail.com
> <https://groups.google.com/d/msgid/codenameone-discussions/CAD3JTfgj9%3Dmbg5gkV8UaKo5Vv8JmFWvizqx4fs7BwvfZ%2B8h%2Brg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKV8S%3DL37mOcP1hbZytJ%2BDOB-k_Vr0vQYOX7yM5ncC3oqw%40mail.gmail.com.


Re: [codenameone-discussions] Cannot run project after maven migration

2021-05-10 Thread Steve Hannah
Run "clean" on the project (or at least the "common" module - i.e. delete
the common/target directory).  Then build again.

On Mon, May 10, 2021 at 6:59 AM Carlos Verdier  wrote:

> One of my project fails to run and throws this error:
>
> Reading program jar [/Users/carlos/Proyectos
> CodenameOne/review/common/target/compliance-check.jar] (filtered)
> Error: Can't read [/Users/carlos/Proyectos
> CodenameOne/review/common/target/compliance-check.jar] (Can't process class
> [net/sf/zipme/ZipInputStream.class] (Unexpected end of ZLIB input stream))
>
> Any idea?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/6a34f448-dc45-4a4e-b25c-e5cbcfef5db8n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/6a34f448-dc45-4a4e-b25c-e5cbcfef5db8n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVAiF0a_VpEh3%3DWYBQ9ebW2Y2PwzGz4uQ18FFuHL1fNPw%40mail.gmail.com.


Re: [codenameone-discussions] Re: IOS sdk issue

2021-05-07 Thread Steve Hannah
This is all covered in the developers guide

https://shannah.github.io/codenameone-maven-manual/


On Fri, May 7, 2021 at 6:46 PM Dave Dyer  wrote:

> Similar results from an android build attempt on a pc
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in
> [jar:file:/C:/Users/Ddyer/.p2/pool/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.16.0.20200610-1735/jars/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in
> [file:/C:/Users/Ddyer/eclipse/java-2021-03/eclipse/configuration/org.eclipse.osgi/5/0/.cp/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
> explanation.
> SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in
> [jar:file:/C:/Users/Ddyer/.p2/pool/plugins/org.eclipse.m2e.maven.runtime.slf4j.simple_1.16.0.20200610-1735/jars/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in
> [file:/C:/Users/Ddyer/eclipse/java-2021-03/eclipse/configuration/org.eclipse.osgi/5/0/.cp/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
> explanation.
> SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
> [INFO] Scanning for projects...
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time:  0.084 s
> [INFO] Finished at: 2021-05-07T18:44:28-07:00
> [INFO]
> 
> [ERROR] No goals have been specified for this build. You must specify a
> valid lifecycle phase or a goal in the format : or
> :[:]:. Available
> lifecycle phases are: validate, initialize, generate-sources,
> process-sources, generate-resources, process-resources, compile,
> process-classes, generate-test-sources, process-test-sources,
> generate-test-resources, process-test-resources, test-compile,
> process-test-classes, test, prepare-package, package, pre-integration-test,
> integration-test, post-integration-test, verify, install, deploy,
> pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. ->
> [Help 1]
>
>
> On Friday, May 7, 2021 at 6:42:20 PM UTC-7 Dave Dyer wrote:
>
>> Isn't cocopods something I'd find on a mac?  this choice is being offered
>> on a pc.
>>
>>
>> On Friday, May 7, 2021 at 6:40:53 PM UTC-7 Steve Hannah wrote:
>>
>>> Did you install cocoapods as the error advises?
>>>
>>> On Fri, May 7, 2021 at 6:36 PM Dave Dyer  wrote:
>>>
>>>> The "life cycle" problems keep builds from working for me
>>>>
>>>> [ERROR] Failed to execute goal
>>>> com.codenameone:codenameone-maven-plugin:7.0.26:build (build-ios) on
>>>> project testapp-ios: Failed to build ios app: Please install Cocoapods in
>>>> order to generate Xcode projects.  E.g. 'sudo gem install cocoapods'.  See
>>>> https://cocoapods.org/ -> [Help 1]
>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>>>> execute goal com.codenameone:codenameone-maven-plugin:7.0.26:build
>>>> (build-ios) on project testapp-ios: Failed to build ios app
>>>> at
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:215)
>>>> at
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
>>>>
>>>>
>>>> On Friday, May 7, 2021 at 6:10:03 PM UTC-7 Steve Hannah wrote:
>>>>
>>>>> They build fine for me.  I see those errors in Eclipse only (not any
>>>>> other ide) and they don’t seem to affect ability to build and run the
>>>>> project.
>>>>>
>>>>> On Fri, May 7, 2021 at 6:08 PM Dave Dyer  wrote:
>>>>>
>>>>>> The skeleton builder doesn't produce an error-free mavin project.
>>>>>>
>>>>>> On Friday, May 7, 2021 at 5:05:12 PM UTC-7 Steve Hannah wrote:
>>>>>>
>>>>>>> Maven “local Xcode builds” work fine for me from eclipse.  In the
>>>>>>> worst case you can build from command line if your eclipse won’t 
>>>>>>> cooperate.
>>>>>>>
>>>>>>> On Fri, May 7, 2021 at 3:37 PM Dave Dyer  wrote:
>>>>>>>
>>>>>>&

Re: [codenameone-discussions] Re: IOS sdk issue

2021-05-07 Thread Steve Hannah
Did you install cocoapods as the error advises?

On Fri, May 7, 2021 at 6:36 PM Dave Dyer  wrote:

> The "life cycle" problems keep builds from working for me
>
> [ERROR] Failed to execute goal
> com.codenameone:codenameone-maven-plugin:7.0.26:build (build-ios) on
> project testapp-ios: Failed to build ios app: Please install Cocoapods in
> order to generate Xcode projects.  E.g. 'sudo gem install cocoapods'.  See
> https://cocoapods.org/ -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal com.codenameone:codenameone-maven-plugin:7.0.26:build (build-ios) on
> project testapp-ios: Failed to build ios app
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:215)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
>
>
> On Friday, May 7, 2021 at 6:10:03 PM UTC-7 Steve Hannah wrote:
>
>> They build fine for me.  I see those errors in Eclipse only (not any
>> other ide) and they don’t seem to affect ability to build and run the
>> project.
>>
>> On Fri, May 7, 2021 at 6:08 PM Dave Dyer  wrote:
>>
>>> The skeleton builder doesn't produce an error-free mavin project.
>>>
>>> On Friday, May 7, 2021 at 5:05:12 PM UTC-7 Steve Hannah wrote:
>>>
>>>> Maven “local Xcode builds” work fine for me from eclipse.  In the worst
>>>> case you can build from command line if your eclipse won’t cooperate.
>>>>
>>>> On Fri, May 7, 2021 at 3:37 PM Dave Dyer  wrote:
>>>>
>>>>> The promised "few minutes" seems not to have materialized - my builds
>>>>> are timing out after 30 minutes.
>>>>> .. also or alternative the self-build capability with mavin isn't
>>>>> supported yet with Eclipse.
>>>>> .. also, when these timeout builds occur, there's no way to get the
>>>>> xcode sources and build it myself.
>>>>> .. and finally, why do production builds take twice as long as debug
>>>>> builds?
>>>>>
>>>>> A year ago, when my build was only a little bit smaller, a production
>>>>> build took 10 minutes.
>>>>>
>>>>> On Tuesday, April 27, 2021 at 6:44:50 PM UTC-7 Shai Almog wrote:
>>>>>
>>>>>> We'll add a few minutes this weekend but it's already 30 minutes
>>>>>> which is insanely high.
>>>>>>
>>>>>> On Tuesday, April 27, 2021 at 10:26:01 AM UTC+3 daved...@gmail.com
>>>>>> wrote:
>>>>>>
>>>>>>> ..if i's only that the process is slower (my build didn't change
>>>>>>> since yesterday) please change your time limit.
>>>>>>>
>>>>>>>
>>>>>>> On Tuesday, April 27, 2021 at 12:24:53 AM UTC-7 Dave Dyer wrote:
>>>>>>>
>>>>>>>> It looks like there may be some unresolved problems with the 12.4
>>>>>>>> option:
>>>>>>>>
>>>>>>>> esPath/Launch.build/Release-iphoneos/Launch.build/DerivedSources/arm64
>>>>>>>> -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/DerivedSources
>>>>>>>> -F/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/BuildProductsPath/Release-iphoneos
>>>>>>>> -fno-objc-arc -include
>>>>>>>> /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/PrecompiledHeaders/SharedPrecompiledHeaders/8225370240782353001/Launch-Prefix.pch
>>>>>>>> -MMD -MT dependencies -MF
>>>>>>>> /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/Objects-normal/arm64/OpenUDID.d
>>>>>>>> --serialize-diagnostics
>>>>>>>> /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/Objects-normal/arm64/OpenUDID.dia
>>>

Re: [codenameone-discussions] Re: IOS sdk issue

2021-05-07 Thread Steve Hannah
They build fine for me.  I see those errors in Eclipse only (not any other
ide) and they don’t seem to affect ability to build and run the project.

On Fri, May 7, 2021 at 6:08 PM Dave Dyer  wrote:

> The skeleton builder doesn't produce an error-free mavin project.
>
> On Friday, May 7, 2021 at 5:05:12 PM UTC-7 Steve Hannah wrote:
>
>> Maven “local Xcode builds” work fine for me from eclipse.  In the worst
>> case you can build from command line if your eclipse won’t cooperate.
>>
>> On Fri, May 7, 2021 at 3:37 PM Dave Dyer  wrote:
>>
>>> The promised "few minutes" seems not to have materialized - my builds
>>> are timing out after 30 minutes.
>>> .. also or alternative the self-build capability with mavin isn't
>>> supported yet with Eclipse.
>>> .. also, when these timeout builds occur, there's no way to get the
>>> xcode sources and build it myself.
>>> .. and finally, why do production builds take twice as long as debug
>>> builds?
>>>
>>> A year ago, when my build was only a little bit smaller, a production
>>> build took 10 minutes.
>>>
>>> On Tuesday, April 27, 2021 at 6:44:50 PM UTC-7 Shai Almog wrote:
>>>
>>>> We'll add a few minutes this weekend but it's already 30 minutes which
>>>> is insanely high.
>>>>
>>>> On Tuesday, April 27, 2021 at 10:26:01 AM UTC+3 daved...@gmail.com
>>>> wrote:
>>>>
>>>>> ..if i's only that the process is slower (my build didn't change since
>>>>> yesterday) please change your time limit.
>>>>>
>>>>>
>>>>> On Tuesday, April 27, 2021 at 12:24:53 AM UTC-7 Dave Dyer wrote:
>>>>>
>>>>>> It looks like there may be some unresolved problems with the 12.4
>>>>>> option:
>>>>>>
>>>>>> esPath/Launch.build/Release-iphoneos/Launch.build/DerivedSources/arm64
>>>>>> -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/DerivedSources
>>>>>> -F/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/BuildProductsPath/Release-iphoneos
>>>>>> -fno-objc-arc -include
>>>>>> /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/PrecompiledHeaders/SharedPrecompiledHeaders/8225370240782353001/Launch-Prefix.pch
>>>>>> -MMD -MT dependencies -MF
>>>>>> /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/Objects-normal/arm64/OpenUDID.d
>>>>>> --serialize-diagnostics
>>>>>> /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/Objects-normal/arm64/OpenUDID.dia
>>>>>> -c
>>>>>> /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/Launch-src/OpenUDID.m
>>>>>> -o
>>>>>> /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/Objects-normal/arm64/OpenUDID.o
>>>>>> /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/Launch-src/OpenUDID.m:147:22:
>>>>>> warning: values of type 'NSUInteger' should not be used as format
>>>>>> arguments; add an explicit cast to 'unsigned long' instead [-Wformat]
>>>>>>  (NSUInteger)(arc4random() % NSUIntegerMax)];
>>>>>>  ^~
>>>>>>  (unsigned long)
>>>>>> /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/Launch-src/OpenUDID.m:138:23:
>>>>>> warning: implicit conversion loses integer precision: 'unsigned long' to
>>>>>> 'CC_LONG' (aka 'unsigned int') [-Wshorten-64-to-32]
>>>>>> CC_MD5( cStr, str

Re: [codenameone-discussions] Re: IOS sdk issue

2021-05-07 Thread Steve Hannah
Launch.build/Release-iphoneos/Launch.build/Objects-normal/arm64/OpenUDID.dia
>>>> -c
>>>> /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/Launch-src/OpenUDID.m
>>>> -o
>>>> /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/Objects-normal/arm64/OpenUDID.o
>>>> /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/Launch-src/OpenUDID.m:147:22:
>>>> warning: values of type 'NSUInteger' should not be used as format
>>>> arguments; add an explicit cast to 'unsigned long' instead [-Wformat]
>>>>  (NSUInteger)(arc4random() % NSUIntegerMax)];
>>>>  ^~
>>>>  (unsigned long)
>>>> /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/Launch-src/OpenUDID.m:138:23:
>>>> warning: implicit conversion loses integer precision: 'unsigned long' to
>>>> 'CC_LONG' (aka 'unsigned int') [-Wshorten-64-to-32]
>>>> CC_MD5( cStr, strlen(cStr), result );
>>>> ~~^~~~
>>>> 2 warnings generated.
>>>> Timeout reached.  Destroying process
>>>>
>>>> On Monday, April 26, 2021 at 7:12:41 PM UTC-7 Shai Almog wrote:
>>>>
>>>>> We updated our build servers to include xcode 12.4 and pushed out that
>>>>> update. As a result we experienced some issues related to that annual 
>>>>> mess.
>>>>> Right now we're still defaulting to 11.3 but you should be able to
>>>>> explicitly send an xcode 12.4 build using: ios.xcode_version=12.4
>>>>> Notice that we'll flip the default over the weekend so it will no
>>>>> longer be needed starting next week.
>>>>>
>>>>> On Monday, April 26, 2021 at 8:54:55 PM UTC+3 daved...@gmail.com
>>>>> wrote:
>>>>>
>>>>>>
>>>>>> Yesterday's build of an IOS app is rejected today at the app store,
>>>>>> complaining that it was built with sdk 13.2 but sdk 14 is required.
>>>>>>
>>>>> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/4ea83310-2389-46dd-9dc1-7542be1ffeb9n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/4ea83310-2389-46dd-9dc1-7542be1ffeb9n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVFzkAUQyaGirxcK7jrfWyvYwAqCXX_mOnXP7%3DZx96B%2Bw%40mail.gmail.com.


Re: [codenameone-discussions] Subsequent local iOS XCode build do not update iOS app

2021-05-07 Thread Steve Hannah
This is a safety feature so you don't accidentally overwrite changes you
have made to your xcode project.  To do a fresh build you'll need to first
"clean" the ios project module, then do a rebuild.

On Fri, May 7, 2021 at 4:57 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

>
> When building the XCode project of a maven project in IntelliJ Idea it can
> happen that only the first time the XCode project is updated.
> Indeed after compilation XCode opens and the app can be compiled and run
> in the iOS simulator.
> Next times I build a modified project with maven but then the XCode is on
> the old build and also if rebuilt the app in the simulator is the old
> version.
> I realized it because my modifications where evident, but in case of
> subtle debugging I could be thinking my modifications were not working.
>
> Regards
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/3c09181c-0655-46ae-a7b9-8e474c1669bdn%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/3c09181c-0655-46ae-a7b9-8e474c1669bdn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVS2pVOEXnBBv1BoRcWokijvs%3DV0Jazn7Bj-9sBipuBPw%40mail.gmail.com.


Re: [codenameone-discussions] Re: maven-XCode built app has runtime error on iOS simulator because of getDisplayWidth function

2021-05-06 Thread Steve Hannah
Native components (e.g. Browser Component) are flaky in the Xcode
simulator.  If you make heavy use of them, you should debug on device and
skip the Xcode simulator.
(NOTE: for people finding this out of context, I'm just referring to the
iOS Xcode simulator that ships with Apple's development tools - not to be
confused with the Codename One simulator, on which native components such
as BrowserComponent work find).

On Thu, May 6, 2021 at 1:54 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> (please also read the previous message)
> I have to say that this is what I found at the end of the XCode
> compilation (the app started and then closed but I did not see that, I was
> not watching), but after some time I tried to run the app and it started
> without error.
> It just does not work as expected, but I do not think it is related to the
> mentioned issue, because metrics are correct.
> [The app just does not let the user to click buttons.
> In the iOS simulator when I click a button in my special CommandDialog
> instances, I see that the underlying BrowserComponents in the layout blink
> black for a moment, but the button click has no effect.
> It seems that the dialog is not closing, so I have to check that.]
> Regards
>
> Il giorno giovedì 6 maggio 2021 alle 08:49:54 UTC+2 P5music ha scritto:
>
>>
>> I am trying to execute my app on iOS simulator by means of the maven
>> build system, I have a runtime issue now, for the
>> getDisplayWidth
>> function.
>> This happens at the beginning of the app, where some metrics are
>> calculated for the main form.
>> Is this error due to my code or to the build or what else?
>> I provide some file attachments, where you can find all necessary
>> information from XCode.
>> Thanks in advance
>>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/9becf1ea-6c5f-4c51-b64f-16b616f9786cn%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/9becf1ea-6c5f-4c51-b64f-16b616f9786cn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKV4V7f7XaW6mnwuxLCSU_iDgEjJ3m9e3Z9uLTtaCz_otg%40mail.gmail.com.


Re: [codenameone-discussions] local iOS build with maven does not like WeakReferences - runtime error in iOS simulator

2021-05-03 Thread Steve Hannah
> So no null references can be there, unless they are something related to
the WeakReference handling of the translated code.

You are missing the point.  A WeakReference is not deterministic.  It can
be cleared at any time by the VM.  You can debug and test on other devices
all you like, and the absence of an NPE doesn't prove anything.  You
*always* need to guard against null values in WeakReferences.

On Mon, May 3, 2021 at 9:53 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> Ok I will check everything as soon as possible but let me say that:
> no null pointer exception is raised when the app is run on the simulator
> or Android device or iOS real device.
>
> So if you say
> "When running on device (without Xcode debugger), it catches the signal
> and throws an NPE" I have to point out that no NPE is thrown.
>
> And about
> "With a WeakReference you cannot count on the reference being maintained -
> it could be set to null at any time.  You need to check the value of the
> reference before using it, or you will get an NPE. "
> I ensure you that a few instruction are called and they are the same
> sequence on every platform at app startup, and there are no flow-diagram
> options going through a path or another.
> So no null references can be there, unless they are something related to
> the WeakReference handling of the translated code.
>
> Regards
>
> Il giorno lunedì 3 maggio 2021 alle 17:58:17 UTC+2 Steve Hannah ha scritto:
>
>> When running in the Xcode debugger, it always stops on these
>> EXC_BAD_ACCESS signals.  When running on device (without Xcode debugger),
>> it catches the signal and throws an NPE.
>>
>> > I debugged in IntelliJ Idea and followed the pointers and they are not
>> null
>>
>> With a WeakReference you cannot count on the reference being maintained -
>> it could be set to null at any time.  You need to check the value of the
>> reference before using it, or you will get an NPE.
>>
>> Solution is simple:  Always check the values of weak references before
>> using them to make sure they're not null.
>>
>> On Mon, May 3, 2021 at 8:35 AM 'P5music' via CodenameOne Discussions <
>> codenameone...@googlegroups.com> wrote:
>>
>>> We are talking of Java, so the fact that some reference could be null is
>>> not already an error, indeed only if it is null at runtime there is NPE.
>>> Unless something in the "compiled" XCode project does not like weak
>>> references (or things that can in theory be null) so it complains.
>>> But this is at runtime, so it is complaining at runtime when that value
>>> is not null, at least not because of the app Java instructions, said that
>>> the same code with no modifications is perfectly running in the simulator
>>> and Android device and iOS real device.
>>> I debugged in IntelliJ Idea and followed the pointers and they are not
>>> null. I knew it already, the instructions sequence is very simple, it is
>>> done on app startup and it is the same on every platform, no room for
>>> leaving any null pointer.
>>>
>>> Otherwise I do not understand what you really mean. Please explain.
>>> Regards
>>>
>>> Il giorno lunedì 3 maggio 2021 alle 15:13:47 UTC+2 Steve Hannah ha
>>> scritto:
>>>
>>>> > appData is a weak reference but nothing is null
>>>>
>>>> ((AppData)appData.get()).appVersion
>>>>
>>>> If appData is a weak reference, then appData.get() may be null.
>>>>
>>>>
>>>>
>>>> On Mon, May 3, 2021 at 6:01 AM 'P5music' via CodenameOne Discussions <
>>>> codenameone...@googlegroups.com> wrote:
>>>>
>>>>> appVersion is just a string, appData is a weak reference but nothing
>>>>> is null, as I said the app works outside of the iOS simulator.
>>>>> I think that it does not like weak references.
>>>>> What could be the cause of the NPE? Maybe those pointers?
>>>>> Maybe the weak reference is not created at all in the translated code
>>>>> (build bug)?
>>>>> Regards
>>>>> Il giorno lunedì 3 maggio 2021 alle 13:27:51 UTC+2 Steve Hannah ha
>>>>> scritto:
>>>>>
>>>>>> When running with the debugger (in Xcode) it will stop on these
>>>>>> error.  When running normally, it "catches" them and proceeds.
>>>>>>
>>>>>> ((AppDat

Re: [codenameone-discussions] local iOS build with maven does not like WeakReferences - runtime error in iOS simulator

2021-05-03 Thread Steve Hannah
When running in the Xcode debugger, it always stops on these EXC_BAD_ACCESS
signals.  When running on device (without Xcode debugger), it catches the
signal and throws an NPE.

> I debugged in IntelliJ Idea and followed the pointers and they are not
null

With a WeakReference you cannot count on the reference being maintained -
it could be set to null at any time.  You need to check the value of the
reference before using it, or you will get an NPE.

Solution is simple:  Always check the values of weak references before
using them to make sure they're not null.

On Mon, May 3, 2021 at 8:35 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> We are talking of Java, so the fact that some reference could be null is
> not already an error, indeed only if it is null at runtime there is NPE.
> Unless something in the "compiled" XCode project does not like weak
> references (or things that can in theory be null) so it complains.
> But this is at runtime, so it is complaining at runtime when that value is
> not null, at least not because of the app Java instructions, said that the
> same code with no modifications is perfectly running in the simulator and
> Android device and iOS real device.
> I debugged in IntelliJ Idea and followed the pointers and they are not
> null. I knew it already, the instructions sequence is very simple, it is
> done on app startup and it is the same on every platform, no room for
> leaving any null pointer.
>
> Otherwise I do not understand what you really mean. Please explain.
> Regards
>
> Il giorno lunedì 3 maggio 2021 alle 15:13:47 UTC+2 Steve Hannah ha scritto:
>
>> > appData is a weak reference but nothing is null
>>
>> ((AppData)appData.get()).appVersion
>>
>> If appData is a weak reference, then appData.get() may be null.
>>
>>
>>
>> On Mon, May 3, 2021 at 6:01 AM 'P5music' via CodenameOne Discussions <
>> codenameone...@googlegroups.com> wrote:
>>
>>> appVersion is just a string, appData is a weak reference but nothing is
>>> null, as I said the app works outside of the iOS simulator.
>>> I think that it does not like weak references.
>>> What could be the cause of the NPE? Maybe those pointers?
>>> Maybe the weak reference is not created at all in the translated code
>>> (build bug)?
>>> Regards
>>> Il giorno lunedì 3 maggio 2021 alle 13:27:51 UTC+2 Steve Hannah ha
>>> scritto:
>>>
>>>> When running with the debugger (in Xcode) it will stop on these error.
>>>> When running normally, it "catches" them and proceeds.
>>>>
>>>> ((AppData)appData.get()).appVersion
>>>>
>>>> That doesn't look safe.  You say appData is a weak reference? Then
>>>> get() may return null?  Then the .appVersion will be an NPE, which is
>>>> essentially what you're seeing.
>>>>
>>>> On Sun, May 2, 2021 at 11:27 PM 'P5music' via CodenameOne Discussions <
>>>> codenameone...@googlegroups.com> wrote:
>>>>
>>>>>
>>>>> I compiled my app with maven and generated the iOS Xcode project.
>>>>> When I run it into the iOS simulator (iPad 8th gen) I get this early
>>>>> error:
>>>>> Thread 4: EXC_BAD_ACCESS (code=1, address=0x30)
>>>>> at this instruction
>>>>> return (*(struct
>>>>> obj__com_myapp_app_AppData*)__cn1T).com_myapp_app_AppData_appVersion;
>>>>> Where only the .com_myapp_app_AppData_appVersion part is in red. The
>>>>> iOS build code is below.
>>>>>
>>>>> It happens at
>>>>> ((AppData)appData.get()).appVersion
>>>>> Inside AppJSONData class, that has a weak reference to the AppData
>>>>> instance.
>>>>> That seems to be a CodenameOne internal problem, not of my app,
>>>>> because it does not happen either on the simulator, or on Android, or a
>>>>> real iOS device (32bit).
>>>>> Am I right?
>>>>> What’s happening. How can it be avoided? Should weak references be
>>>>> avoided? I think this one can be removed because it has the same app
>>>>> lifetime, but there are also others that are dynamic.
>>>>> Also it can be something that is wrong in the CN1 maven system to be
>>>>> fixed.
>>>>> Thanks in advance
>>>>>
>>>>> #include "com_myapp_app_AppData.h"
>>>>> #include "com_my

Re: [codenameone-discussions] local iOS build with maven does not like WeakReferences - runtime error in iOS simulator

2021-05-03 Thread Steve Hannah
> appData is a weak reference but nothing is null

((AppData)appData.get()).appVersion

If appData is a weak reference, then appData.get() may be null.



On Mon, May 3, 2021 at 6:01 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> appVersion is just a string, appData is a weak reference but nothing is
> null, as I said the app works outside of the iOS simulator.
> I think that it does not like weak references.
> What could be the cause of the NPE? Maybe those pointers?
> Maybe the weak reference is not created at all in the translated code
> (build bug)?
> Regards
> Il giorno lunedì 3 maggio 2021 alle 13:27:51 UTC+2 Steve Hannah ha scritto:
>
>> When running with the debugger (in Xcode) it will stop on these error.
>> When running normally, it "catches" them and proceeds.
>>
>> ((AppData)appData.get()).appVersion
>>
>> That doesn't look safe.  You say appData is a weak reference? Then get()
>> may return null?  Then the .appVersion will be an NPE, which is essentially
>> what you're seeing.
>>
>> On Sun, May 2, 2021 at 11:27 PM 'P5music' via CodenameOne Discussions <
>> codenameone...@googlegroups.com> wrote:
>>
>>>
>>> I compiled my app with maven and generated the iOS Xcode project.
>>> When I run it into the iOS simulator (iPad 8th gen) I get this early
>>> error:
>>> Thread 4: EXC_BAD_ACCESS (code=1, address=0x30)
>>> at this instruction
>>> return (*(struct
>>> obj__com_myapp_app_AppData*)__cn1T).com_myapp_app_AppData_appVersion;
>>> Where only the .com_myapp_app_AppData_appVersion part is in red. The iOS
>>> build code is below.
>>>
>>> It happens at
>>> ((AppData)appData.get()).appVersion
>>> Inside AppJSONData class, that has a weak reference to the AppData
>>> instance.
>>> That seems to be a CodenameOne internal problem, not of my app, because
>>> it does not happen either on the simulator, or on Android, or a real iOS
>>> device (32bit).
>>> Am I right?
>>> What’s happening. How can it be avoided? Should weak references be
>>> avoided? I think this one can be removed because it has the same app
>>> lifetime, but there are also others that are dynamic.
>>> Also it can be something that is wrong in the CN1 maven system to be
>>> fixed.
>>> Thanks in advance
>>>
>>> #include "com_myapp_app_AppData.h"
>>> #include "com_myapp_app_AppData.h"
>>> #include "com_myapp_app_AppJSONData.h"
>>> #include "java_io_IOException.h"
>>> #include "java_lang_NullPointerException.h"
>>> #include "java_lang_String.h"
>>> #include "java_lang_ref_WeakReference.h"
>>> const struct clazz *base_interfaces_for_com_myapp_app_AppData[] = {};
>>> struct clazz class__com_myapp_app_AppData = {
>>>   DEBUG_GC_INIT &class__java_lang_Class, 99, 0, 0, 0, 0,
>>> &__FINALIZER_com_myapp_app_AppData ,0 , &__GC_MARK_com_myapp_app_AppData,
>>> 0, cn1_class_id_com_myapp_app_AppData, "com.myapp.app.AppData", 0, 0, 0,
>>> JAVA_FALSE, &class__java_lang_Object,
>>> base_interfaces_for_com_myapp_app_AppData, 0, 0, 0
>>> , 0, 0, 0, 0, 0, 0};
>>>
>>> JAVA_OBJECT get_field_com_myapp_app_AppData_appVersion(JAVA_OBJECT
>>> __cn1T) {
>>>   return (*(struct
>>> obj__com_myapp_app_AppData*)__cn1T).com_myapp_app_AppData_appVersion;
>>> }
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "CodenameOne Discussions" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to codenameone-discu...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/codenameone-discussions/c0d25bdf-85a4-4253-ade1-fcaed6c484dbn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/codenameone-discussions/c0d25bdf-85a4-4253-ade1-fcaed6c484dbn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Steve Hannah
>> Software Developer
>> Codename One
>> http://www.codenameone.com
>>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/0a3f4bbd-c6a1-49e9-90d5-738f88666ea4n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/0a3f4bbd-c6a1-49e9-90d5-738f88666ea4n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKU3HYiVPi%3D7DUE0oi1f-CyV4F6V%3Di_mwi5C-H%3D_HPhzPA%40mail.gmail.com.


Re: [codenameone-discussions] local iOS build with maven does not like WeakReferences - runtime error in iOS simulator

2021-05-03 Thread Steve Hannah
When running with the debugger (in Xcode) it will stop on these error.
When running normally, it "catches" them and proceeds.

((AppData)appData.get()).appVersion

That doesn't look safe.  You say appData is a weak reference? Then get()
may return null?  Then the .appVersion will be an NPE, which is essentially
what you're seeing.

On Sun, May 2, 2021 at 11:27 PM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

>
> I compiled my app with maven and generated the iOS Xcode project.
> When I run it into the iOS simulator (iPad 8th gen) I get this early error:
> Thread 4: EXC_BAD_ACCESS (code=1, address=0x30)
> at this instruction
> return (*(struct
> obj__com_myapp_app_AppData*)__cn1T).com_myapp_app_AppData_appVersion;
> Where only the .com_myapp_app_AppData_appVersion part is in red. The iOS
> build code is below.
>
> It happens at
> ((AppData)appData.get()).appVersion
> Inside AppJSONData class, that has a weak reference to the AppData
> instance.
> That seems to be a CodenameOne internal problem, not of my app, because it
> does not happen either on the simulator, or on Android, or a real iOS
> device (32bit).
> Am I right?
> What’s happening. How can it be avoided? Should weak references be
> avoided? I think this one can be removed because it has the same app
> lifetime, but there are also others that are dynamic.
> Also it can be something that is wrong in the CN1 maven system to be fixed.
> Thanks in advance
>
> #include "com_myapp_app_AppData.h"
> #include "com_myapp_app_AppData.h"
> #include "com_myapp_app_AppJSONData.h"
> #include "java_io_IOException.h"
> #include "java_lang_NullPointerException.h"
> #include "java_lang_String.h"
> #include "java_lang_ref_WeakReference.h"
> const struct clazz *base_interfaces_for_com_myapp_app_AppData[] = {};
> struct clazz class__com_myapp_app_AppData = {
>   DEBUG_GC_INIT &class__java_lang_Class, 99, 0, 0, 0, 0,
> &__FINALIZER_com_myapp_app_AppData ,0 , &__GC_MARK_com_myapp_app_AppData,
> 0, cn1_class_id_com_myapp_app_AppData, "com.myapp.app.AppData", 0, 0, 0,
> JAVA_FALSE, &class__java_lang_Object,
> base_interfaces_for_com_myapp_app_AppData, 0, 0, 0
> , 0, 0, 0, 0, 0, 0};
>
> JAVA_OBJECT get_field_com_myapp_app_AppData_appVersion(JAVA_OBJECT __cn1T)
> {
>   return (*(struct
> obj__com_myapp_app_AppData*)__cn1T).com_myapp_app_AppData_appVersion;
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/c0d25bdf-85a4-4253-ade1-fcaed6c484dbn%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/c0d25bdf-85a4-4253-ade1-fcaed6c484dbn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWV%2B1nUK1r464nfgYXarULqpyBL60qh7CWEG5O%3DS4wjrA%40mail.gmail.com.


Re: [codenameone-discussions] Troubles installing cocoapods for maven local iOS build

2021-05-01 Thread Steve Hannah
You have to install the Xcode command-line tools.
Might be as simple as:
xcode-select --install

But if not, there is lots of info on this on Google, Stack Overflow, etc...

On Sat, May 1, 2021 at 7:46 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> I am trying to create a local iOS build for my project with maven.
> On my system (OSX Catilina) XCode is installed and
> also xcodeproj
> Now I am trying to install cocoapods
> with
> sudo gem install cocoapods
>
> The output and the error log are provided, please see attached files.
>
> I do not know if it is off-topic here but it is related to the maven
> migration for CN1 projects, so other users could beneficiate if they run
> into the same problems.
> Thanks in advance
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/553fadb5-81e1-4efc-a1a9-589e538294ebn%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/553fadb5-81e1-4efc-a1a9-589e538294ebn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWAzHo%3D7Y5jT9N44Q8ybT5DmLAOLoReOTZUFPMwU%2BrE_w%40mail.gmail.com.


Re: [codenameone-discussions] Re: "Failed to create CEF browser" on OSX with IntelliJ Idea maven-migrated project

2021-04-30 Thread Steve Hannah
Sorry... that should read version 7.0.26.  Not 7.0.27

On Fri, Apr 30, 2021 at 10:35 AM Steve Hannah 
wrote:

> This issue was related to Apple's codesigning and notarization
> requirements, and affected only Big Sur and Catalina.  I have just
> published a new version 7.0.27 to Maven central which fixes the issue.
> This should be generally available within the next few hours.
>
> Simplest way to update to the new version is to change the cn1.version and
> cn1.plugin.version properties in your pom.xml file to 7.0.26
>
> On Fri, Apr 30, 2021 at 1:16 AM 'P5music' via CodenameOne Discussions <
> codenameone-discussions@googlegroups.com> wrote:
>
>> I removed the cef directory, but then it is not recreated from CN1
>> settings (update, save).
>> Regards
>>
>> Il giorno venerdì 30 aprile 2021 alle 05:54:19 UTC+2 Shai Almog ha
>> scritto:
>>
>>> I suggest removing the whole directory then launching Codename One
>>> Settings and running the Update command from the menu on the right. It
>>> should install CEF correctly for you.
>>>
>>> On Friday, April 30, 2021 at 12:47:15 AM UTC+3 P5music wrote:
>>>
>>>> I am using IntelliJ Idea on OSX Catilina for my project (migrated to
>>>> maven).
>>>>
>>>> I installed the cef folder by means of the command line instruction
>>>> from the "CEF big changes" web page. The command created a /cef/cef
>>>> structure.
>>>> Running the app in the simulator I got the "unable to create CEF
>>>> browser" error.
>>>>
>>>> I copied the files to the upper level because I believe the command
>>>> created a nested cef folder. So now I have .codenameone/cef/files structure
>>>> I get
>>>> java.lang.IllegalStateException: Settings can only be passed to CEF
>>>> before createClient is called the first time.
>>>> at org.cef.CefApp.getInstance(CefApp.java:215)
>>>> at
>>>> com.codename1.impl.javase.cef.BrowserPanel.(BrowserPanel.java:204)
>>>> at
>>>> com.codename1.impl.javase.cef.CEFBrowserComponent$3.(CEFBrowserComponent.java:249)
>>>> at
>>>> com.codename1.impl.javase.cef.CEFBrowserComponent.create(CEFBrowserComponent.java:248)
>>>> at
>>>> com.codename1.impl.javase.cef.CEFBrowserComponent.create(CEFBrowserComponent.java:199)
>>>> at
>>>> com.codename1.impl.javase.cef.CEFBrowserComponent.create(CEFBrowserComponent.java:196)
>>>> at
>>>> com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:139)
>>>> at
>>>> com.codename1.impl.javase.cef.JavaCEFSEPort$2.run(JavaCEFSEPort.java:121)
>>>> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
>>>> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
>>>> at java.awt.EventQueue.access$500(EventQueue.java:97)
>>>> at java.awt.EventQueue$3.run(EventQueue.java:709)
>>>> at java.awt.EventQueue$3.run(EventQueue.java:703)
>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>> at
>>>> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
>>>> at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
>>>> at
>>>> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
>>>> at
>>>> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
>>>> at
>>>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
>>>> at
>>>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
>>>> at
>>>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
>>>> at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
>>>> 0:0:28,21 - Exception: java.lang.RuntimeException - Failed to create
>>>> CEF browser
>>>> java.lang.RuntimeException: Failed to create CEF browser
>>>>
>>>> Thanks in advance
>>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "CodenameOne Discussions" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to codenameone-discussions+unsubscr...@googlegroups.com.
>> To view this discussion on 

Re: [codenameone-discussions] Re: Accessing resources in maven-migrated project

2021-04-30 Thread Steve Hannah
This issue is fixed version 7.0.26 (just published on Maven Central -- will
be available in a few hours).
Easiest way to update is to change the cn1.version and cn1.plugin.version
properties in your pom.xml file to 7.0.26.

On Thu, Apr 29, 2021 at 8:50 PM Shai Almog  wrote:

> Not sure. I'll check
>
> On Thursday, April 29, 2021 at 9:56:52 AM UTC+3 P5music wrote:
>
>>
>> My app was migrated to a maven project.I can run it in the simulator.
>> But I see that something changed as to accessing the resources I put in
>> the package.
>>
>> The app used to access some HTML files in a html folder, and I see in the
>> code that I omitted the folder name (html) part.
>> If I recall correctly this was because the resources were accessed
>> directly in the root.
>>
>> Now I see that there is a "resources" folder, and no matter what complete
>> path I prefix, there is an error when the BC attempts to load the HTML file.
>> Should I remove all that and put on root as before?
>> Thanks in advance
>>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/d2da7259-eb35-466a-bf7a-80e33d88f968n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/d2da7259-eb35-466a-bf7a-80e33d88f968n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKX2QfmuaowBHtvMtWi796RheFatQqZ-8%3DKtsMzkcGZhZw%40mail.gmail.com.


Re: [codenameone-discussions] Re: "Failed to create CEF browser" on OSX with IntelliJ Idea maven-migrated project

2021-04-30 Thread Steve Hannah
This issue was related to Apple's codesigning and notarization
requirements, and affected only Big Sur and Catalina.  I have just
published a new version 7.0.27 to Maven central which fixes the issue.
This should be generally available within the next few hours.

Simplest way to update to the new version is to change the cn1.version and
cn1.plugin.version properties in your pom.xml file to 7.0.26

On Fri, Apr 30, 2021 at 1:16 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> I removed the cef directory, but then it is not recreated from CN1
> settings (update, save).
> Regards
>
> Il giorno venerdì 30 aprile 2021 alle 05:54:19 UTC+2 Shai Almog ha scritto:
>
>> I suggest removing the whole directory then launching Codename One
>> Settings and running the Update command from the menu on the right. It
>> should install CEF correctly for you.
>>
>> On Friday, April 30, 2021 at 12:47:15 AM UTC+3 P5music wrote:
>>
>>> I am using IntelliJ Idea on OSX Catilina for my project (migrated to
>>> maven).
>>>
>>> I installed the cef folder by means of the command line instruction from
>>> the "CEF big changes" web page. The command created a /cef/cef structure.
>>> Running the app in the simulator I got the "unable to create CEF
>>> browser" error.
>>>
>>> I copied the files to the upper level because I believe the command
>>> created a nested cef folder. So now I have .codenameone/cef/files structure
>>> I get
>>> java.lang.IllegalStateException: Settings can only be passed to CEF
>>> before createClient is called the first time.
>>> at org.cef.CefApp.getInstance(CefApp.java:215)
>>> at
>>> com.codename1.impl.javase.cef.BrowserPanel.(BrowserPanel.java:204)
>>> at
>>> com.codename1.impl.javase.cef.CEFBrowserComponent$3.(CEFBrowserComponent.java:249)
>>> at
>>> com.codename1.impl.javase.cef.CEFBrowserComponent.create(CEFBrowserComponent.java:248)
>>> at
>>> com.codename1.impl.javase.cef.CEFBrowserComponent.create(CEFBrowserComponent.java:199)
>>> at
>>> com.codename1.impl.javase.cef.CEFBrowserComponent.create(CEFBrowserComponent.java:196)
>>> at
>>> com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:139)
>>> at
>>> com.codename1.impl.javase.cef.JavaCEFSEPort$2.run(JavaCEFSEPort.java:121)
>>> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
>>> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
>>> at java.awt.EventQueue.access$500(EventQueue.java:97)
>>> at java.awt.EventQueue$3.run(EventQueue.java:709)
>>> at java.awt.EventQueue$3.run(EventQueue.java:703)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at
>>> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
>>> at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
>>> at
>>> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
>>> at
>>> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
>>> at
>>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
>>> at
>>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
>>> at
>>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
>>> at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
>>> 0:0:28,21 - Exception: java.lang.RuntimeException - Failed to create CEF
>>> browser
>>> java.lang.RuntimeException: Failed to create CEF browser
>>>
>>> Thanks in advance
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/16801bb6-ae42-4b13-83e2-ce26d6890c21n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/16801bb6-ae42-4b13-83e2-ce26d6890c21n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXtiihfeYdr8F%2B51H8gZA33mMXS9dVCOYS7%3Dc9OFo7aWA%40mail.gmail.com.


Re: [codenameone-discussions] Re: IOS sdk issue

2021-04-28 Thread Steve Hannah
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/Objects-normal/arm64/OpenUDID.dia
>>>>> -c
>>>>> /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/Launch-src/OpenUDID.m
>>>>> -o
>>>>> /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/Launch/IntermediateBuildFilesPath/Launch.build/Release-iphoneos/Launch.build/Objects-normal/arm64/OpenUDID.o
>>>>> /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/Launch-src/OpenUDID.m:147:22:
>>>>> warning: values of type 'NSUInteger' should not be used as format
>>>>> arguments; add an explicit cast to 'unsigned long' instead [-Wformat]
>>>>>  (NSUInteger)(arc4random() % NSUIntegerMax)];
>>>>>  ^~
>>>>>  (unsigned long)
>>>>> /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcmgn/T/build3100488520530737749xxx/dist/Launch-src/OpenUDID.m:138:23:
>>>>> warning: implicit conversion loses integer precision: 'unsigned long' to
>>>>> 'CC_LONG' (aka 'unsigned int') [-Wshorten-64-to-32]
>>>>> CC_MD5( cStr, strlen(cStr), result );
>>>>> ~~^~~~
>>>>> 2 warnings generated.
>>>>> Timeout reached.  Destroying process
>>>>>
>>>>> On Monday, April 26, 2021 at 7:12:41 PM UTC-7 Shai Almog wrote:
>>>>>
>>>>>> We updated our build servers to include xcode 12.4 and pushed out
>>>>>> that update. As a result we experienced some issues related to that 
>>>>>> annual
>>>>>> mess.
>>>>>> Right now we're still defaulting to 11.3 but you should be able to
>>>>>> explicitly send an xcode 12.4 build using: ios.xcode_version=12.4
>>>>>> Notice that we'll flip the default over the weekend so it will no
>>>>>> longer be needed starting next week.
>>>>>>
>>>>>> On Monday, April 26, 2021 at 8:54:55 PM UTC+3 daved...@gmail.com
>>>>>> wrote:
>>>>>>
>>>>>>>
>>>>>>> Yesterday's build of an IOS app is rejected today at the app store,
>>>>>>> complaining that it was built with sdk 13.2 but sdk 14 is required.
>>>>>>>
>>>>>> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/1033e1fb-6e20-461a-b5f3-1485af0475e3n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/1033e1fb-6e20-461a-b5f3-1485af0475e3n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKUGNqc%2BevxB6dhH3_pST6aNJrjyVGDD0yBR3%2BHWqonq9A%40mail.gmail.com.


Re: [codenameone-discussions] Can't upload iOS app to the AppStore - SDK Version error

2021-04-28 Thread Steve Hannah
For the next week or so, you'll need to use the ios.xcode_version=12.4
build hint for Appstore builds.
https://www.codenameone.com/blog/moving-to-xcode-12.html

Steve

On Wed, Apr 28, 2021 at 6:54 AM Hannah R  wrote:

> Hi,
>
> I tried uploading iOS release build to the AppStore in order to use it
> through the TestFlight.
> However, it ran into following errors:
>
> ERROR ITMS-90717: "Invalid App Store Icon. The App Store Icon in the asset
> catalog in 'MyApp.app' can't be transparent nor contain an alpha channel."
>
> ERROR ITMS-90725: "SDK Version Issue. This app was built with the iOS 13.2
> SDK. All iOS apps submitted to the App Store must be built with the iOS 14
> SDK or later, included in Xcode 12 or later."
>
> WARNING ITMS-90473: "CFBundleShortVersionString Mismatch. The
> CFBundleShortVersionString value '1.0' of extension
> 'MyApp.app/PlugIns/MyAppNotificationServiceExtension.appex' does not match
> the CFBundleShortVersionString value '0.7' of its containing iOS
> application 'MyApp.app'."
>
> While I might find a way to deal with invalid store icon, what are the
> issues with the SDK Version?
>
> I sent two release builds - with *codename1.ios.xcode_version=11.3*  in
> properties and without it. Both give this error.
>
> Thanks in advance!
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/5a26be25-6c9b-4c81-963e-fbd420bc3319n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/5a26be25-6c9b-4c81-963e-fbd420bc3319n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKUeE3PEsNhPc5U5VQO2q7vOx%2BAz3cf8Rz0qdAzC2Jzznw%40mail.gmail.com.


Re: [codenameone-discussions] Maven migrated project problem

2021-04-04 Thread Steve Hannah
i have experienced this intermittently too but don't know what causes it
yet.  I'll look into it on Tuesday.


On Sun, Apr 4, 2021 at 3:22 PM Javier Anton  wrote:

> Hi,
>
> My new maven migrated project has a problem. When opening files on
> NetBeans, I can't CTRL+Click on any symbols. CTRL+Click brings you to a
> variable/class definition, but this can't be achieved on NetBeans when
> using the new maven project
>
> I can't right click and find all usages either. Any idea how to solve this?
>
> Thanks
>
> Javier
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/CAG90yJ39XZ%2BUi4NVp%3Dnpikb7j%3DG0x%2BH%3DXaoAbOab6MSo6H_ZKw%40mail.gmail.com
> <https://groups.google.com/d/msgid/codenameone-discussions/CAG90yJ39XZ%2BUi4NVp%3Dnpikb7j%3DG0x%2BH%3DXaoAbOab6MSo6H_ZKw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXO0Tj4%2BwWWB6gOCqqqYXu6rtGC_ug%3Dpn0fsx4gGJ9Mhw%40mail.gmail.com.


Re: [codenameone-discussions] moving to mavin

2021-04-01 Thread Steve Hannah
i can do that.

On Thu, Apr 1, 2021 at 1:51 PM Dave Dyer  wrote:

> I'm not an eclipse guru, but it would definitely help if the names the
> launch options
> included the name of the project they are launching.
>
> On Thursday, April 1, 2021 at 1:45:01 PM UTC-7 Steve Hannah wrote:
>
>> I'm open to suggestions on how to make things easier for Eclipse users.
>> The launch options seemed like the way to go, but now I'm not so sure.
>> Each IDE has its own way of working with Maven projects.  IntelliJ's
>> support is by far the best.  NetBeans is pretty good.  Eclipse, so far,
>> leaves much to be desired.  If you have used any other Maven projects in
>> eclipse that provide multiple build options in a nice way, I'd be
>> interested to hear about them.
>>
>> Both NetBeans and IntelliJ allow me to add "actions/configurations" to
>> the project directory that will be picked up by the IDE to add the
>> appropriate UI options (build options) only for that project.  So far I
>> haven't found a nice way to do that in Eclipse.  Launch options is close,
>> but now that you raise the issue of multiple projects in a workspace, it
>> has some problems.
>>
>> On Thu, Apr 1, 2021 at 1:14 PM Dave Dyer  wrote:
>>
>>> All the entries have the same names, not per project, so if I have both
>>> a hello world and a kitchen sink
>>> project open in the workspace, there are two of everthing in the
>>> debug-as menu
>>>
>>> Still do not work - the javase project is one of the 4 that have errors
>>> [INFO] Reactor Summary:
>>> [INFO]
>>> [INFO] mtest .. SUCCESS [
>>> 0.000 s]
>>> [INFO] mtest-common ... FAILURE [
>>> 2.678 s]
>>> [INFO] mtest-javase ... SKIPPED
>>> [INFO]
>>> 
>>> [INFO] BUILD FAILURE
>>>
>>> On Thursday, April 1, 2021 at 1:02:54 PM UTC-7 Steve Hannah wrote:
>>>
>>>> Right now, you need to make sure the root module is selected in the
>>>> package manager before selecting one of these options because all "mvn"
>>>> commands must be run from this directory.  I'm working on getting Eclipse
>>>> to not require this, but so far it has been uncooperative.
>>>>
>>>> On Thu, Apr 1, 2021 at 12:32 PM Dave Dyer  wrote:
>>>>
>>>>> The items are there, but they don't work as far as I can tell.  (this
>>>>> example for the converted kitchen sink project
>>>>>
>>>>> [ERROR] Failed to execute goal
>>>>> com.codenameone:codenameone-maven-plugin:7.0.20:generate-gui-sources
>>>>> (generate-gui-sources) on project sink-common: Execution
>>>>> generate-gui-sources of goal
>>>>> com.codenameone:codenameone-maven-plugin:7.0.20:generate-gui-sources
>>>>> failed: Plugin com.codenameone:codenameone-maven-plugin:7.0.20 or one of
>>>>> its dependencies could not be resolved: Could not find artifact
>>>>> com.sun:tools:jar:1.8.0 at specified path C:\Program
>>>>> Files\Java\jre1.8.0_144/../lib/tools.jar -> [Help 1]
>>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>>>>> execute goal
>>>>> com.codenameone:codenameone-maven-plugin:7.0.20:generate-gui-sources
>>>>> (generate-gui-sources) on project sink-common: Execution
>>>>> generate-gui-sources of goal
>>>>> com.codenameone:codenameone-maven-plugin:7.0.20:generate-gui-sources
>>>>> failed: Plugin com.codenameone:codenameone-maven-plugin:7.0.20 or one of
>>>>> its dependencies could not be resolved: Could not find artifact
>>>>> com.sun:tools:jar:1.8.0 at specified path C:\Program
>>>>> Files\Java\jre1.8.0_144/../lib/tools.jar
>>>>> at
>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
>>>>> at
>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>>>> at
>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>>>> at
>>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
>>>>> at
>>>>> org.apache.maven.lifecyc

Re: [codenameone-discussions] moving to mavin

2021-04-01 Thread Steve Hannah
I'm open to suggestions on how to make things easier for Eclipse users.
The launch options seemed like the way to go, but now I'm not so sure.
Each IDE has its own way of working with Maven projects.  IntelliJ's
support is by far the best.  NetBeans is pretty good.  Eclipse, so far,
leaves much to be desired.  If you have used any other Maven projects in
eclipse that provide multiple build options in a nice way, I'd be
interested to hear about them.

Both NetBeans and IntelliJ allow me to add "actions/configurations" to the
project directory that will be picked up by the IDE to add the appropriate
UI options (build options) only for that project.  So far I haven't found a
nice way to do that in Eclipse.  Launch options is close, but now that you
raise the issue of multiple projects in a workspace, it has some problems.

On Thu, Apr 1, 2021 at 1:14 PM Dave Dyer  wrote:

> All the entries have the same names, not per project, so if I have both a
> hello world and a kitchen sink
> project open in the workspace, there are two of everthing in the debug-as
> menu
>
> Still do not work - the javase project is one of the 4 that have errors
> [INFO] Reactor Summary:
> [INFO]
> [INFO] mtest .. SUCCESS [
> 0.000 s]
> [INFO] mtest-common ... FAILURE [
> 2.678 s]
> [INFO] mtest-javase ... SKIPPED
> [INFO]
> ----
> [INFO] BUILD FAILURE
>
> On Thursday, April 1, 2021 at 1:02:54 PM UTC-7 Steve Hannah wrote:
>
>> Right now, you need to make sure the root module is selected in the
>> package manager before selecting one of these options because all "mvn"
>> commands must be run from this directory.  I'm working on getting Eclipse
>> to not require this, but so far it has been uncooperative.
>>
>> On Thu, Apr 1, 2021 at 12:32 PM Dave Dyer  wrote:
>>
>>> The items are there, but they don't work as far as I can tell.  (this
>>> example for the converted kitchen sink project
>>>
>>> [ERROR] Failed to execute goal
>>> com.codenameone:codenameone-maven-plugin:7.0.20:generate-gui-sources
>>> (generate-gui-sources) on project sink-common: Execution
>>> generate-gui-sources of goal
>>> com.codenameone:codenameone-maven-plugin:7.0.20:generate-gui-sources
>>> failed: Plugin com.codenameone:codenameone-maven-plugin:7.0.20 or one of
>>> its dependencies could not be resolved: Could not find artifact
>>> com.sun:tools:jar:1.8.0 at specified path C:\Program
>>> Files\Java\jre1.8.0_144/../lib/tools.jar -> [Help 1]
>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>>> execute goal
>>> com.codenameone:codenameone-maven-plugin:7.0.20:generate-gui-sources
>>> (generate-gui-sources) on project sink-common: Execution
>>> generate-gui-sources of goal
>>> com.codenameone:codenameone-maven-plugin:7.0.20:generate-gui-sources
>>> failed: Plugin com.codenameone:codenameone-maven-plugin:7.0.20 or one of
>>> its dependencies could not be resolved: Could not find artifact
>>> com.sun:tools:jar:1.8.0 at specified path C:\Program
>>> Files\Java\jre1.8.0_144/../lib/tools.jar
>>> at
>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
>>> at
>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>>     at
>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>> at
>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
>>> at
>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
>>>
>>>
>>> On Thursday, April 1, 2021 at 11:29:41 AM UTC-7 Steve Hannah wrote:
>>>
>>>> Ignore the project errors.  Those are there to make Eclipse users feel
>>>> at home.  There should now be short-cuts to the common build goals in the
>>>> run menu.
>>>> [image: image.png]
>>>>
>>>> I'm surprised you got 7.0.20 working at all.  It doesn't look like it's
>>>> made it to maven central yet.
>>>> https://search.maven.org/search?q=codenameone-maven-plugin
>>>>
>>>>
>>>> On Thu, Apr 1, 2021 at 10:54 AM Dave Dyer  wrote:
>>>>
>>>>> in Eclipse, 7.0.20 still produces projects with errors, and a
>>>>> menagerie of se

Re: [codenameone-discussions] moving to mavin

2021-04-01 Thread Steve Hannah
Right now, you need to make sure the root module is selected in the package
manager before selecting one of these options because all "mvn" commands
must be run from this directory.  I'm working on getting Eclipse to not
require this, but so far it has been uncooperative.

On Thu, Apr 1, 2021 at 12:32 PM Dave Dyer  wrote:

> The items are there, but they don't work as far as I can tell.  (this
> example for the converted kitchen sink project
>
> [ERROR] Failed to execute goal
> com.codenameone:codenameone-maven-plugin:7.0.20:generate-gui-sources
> (generate-gui-sources) on project sink-common: Execution
> generate-gui-sources of goal
> com.codenameone:codenameone-maven-plugin:7.0.20:generate-gui-sources
> failed: Plugin com.codenameone:codenameone-maven-plugin:7.0.20 or one of
> its dependencies could not be resolved: Could not find artifact
> com.sun:tools:jar:1.8.0 at specified path C:\Program
> Files\Java\jre1.8.0_144/../lib/tools.jar -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal com.codenameone:codenameone-maven-plugin:7.0.20:generate-gui-sources
> (generate-gui-sources) on project sink-common: Execution
> generate-gui-sources of goal
> com.codenameone:codenameone-maven-plugin:7.0.20:generate-gui-sources
> failed: Plugin com.codenameone:codenameone-maven-plugin:7.0.20 or one of
> its dependencies could not be resolved: Could not find artifact
> com.sun:tools:jar:1.8.0 at specified path C:\Program
> Files\Java\jre1.8.0_144/../lib/tools.jar
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
>
>
> On Thursday, April 1, 2021 at 11:29:41 AM UTC-7 Steve Hannah wrote:
>
>> Ignore the project errors.  Those are there to make Eclipse users feel at
>> home.  There should now be short-cuts to the common build goals in the run
>> menu.
>> [image: image.png]
>>
>> I'm surprised you got 7.0.20 working at all.  It doesn't look like it's
>> made it to maven central yet.
>> https://search.maven.org/search?q=codenameone-maven-plugin
>>
>>
>> On Thu, Apr 1, 2021 at 10:54 AM Dave Dyer  wrote:
>>
>>> in Eclipse, 7.0.20 still produces projects with errors, and a menagerie
>>> of separate projects instead of
>>> a single rooted project.I assume you plan to eventually make
>>> projects that eclipse will like.
>>>
>>>
>>> On Thursday, April 1, 2021 at 8:53:32 AM UTC-7 Steve Hannah wrote:
>>>
>>>> Note:  Made the maven project more Eclipse friendly with 7.0.19
>>>> (available now).  You would need to run migration again.
>>>> 7.0.20 will be available in a few hours with a bug fix for native
>>>> interfaces on Android.
>>>>
>>>> By "Eclipse Friendly", I mean that the project now contains launch
>>>> files for all of the main build targets so that they will show up in the
>>>> run menu - so you don't have to futz with CLI parameters for the common
>>>> goals.
>>>>
>>>> Steve
>>>>
>>>> On Wed, Mar 31, 2021 at 10:52 AM Steve Hannah <
>>>> steve@codenameone.com> wrote:
>>>>
>>>>> The migration tool expects source files to be in the standard
>>>>> locations.   If you've modified the project structure, it will be up to 
>>>>> you
>>>>> to migrate it manually.
>>>>>
>>>>> It expects source files in the src directory.
>>>>> CSS files in the css directory.
>>>>> native files in the native directory, etc...
>>>>>
>>>>>
>>>>> On Wed, Mar 31, 2021 at 10:48 AM Dave Dyer  wrote:
>>>>>
>>>>>> FYI, your conversion scripts do not appear to handle legacy scripts
>>>>>> that have manually changed source paths.
>>>>>> All of my codename1 projects keep the actual sources in a separate
>>>>>> hierarchy from the eclipse/codename1
>>>>>> project gubbish.
>>>>>>
>>>>>>
>>>>>> On Tuesday, March 30, 2021 at 5:58:47 PM UTC-7 Dave Dyer w

Re: [codenameone-discussions] moving to mavin

2021-04-01 Thread Steve Hannah
Ignore the project errors.  Those are there to make Eclipse users feel at
home.  There should now be short-cuts to the common build goals in the run
menu.
[image: image.png]

I'm surprised you got 7.0.20 working at all.  It doesn't look like it's
made it to maven central yet.
https://search.maven.org/search?q=codenameone-maven-plugin


On Thu, Apr 1, 2021 at 10:54 AM Dave Dyer  wrote:

> in Eclipse, 7.0.20 still produces projects with errors, and a menagerie of
> separate projects instead of
> a single rooted project.I assume you plan to eventually make projects
> that eclipse will like.
>
>
> On Thursday, April 1, 2021 at 8:53:32 AM UTC-7 Steve Hannah wrote:
>
>> Note:  Made the maven project more Eclipse friendly with 7.0.19
>> (available now).  You would need to run migration again.
>> 7.0.20 will be available in a few hours with a bug fix for native
>> interfaces on Android.
>>
>> By "Eclipse Friendly", I mean that the project now contains launch files
>> for all of the main build targets so that they will show up in the run menu
>> - so you don't have to futz with CLI parameters for the common goals.
>>
>> Steve
>>
>> On Wed, Mar 31, 2021 at 10:52 AM Steve Hannah 
>> wrote:
>>
>>> The migration tool expects source files to be in the standard
>>> locations.   If you've modified the project structure, it will be up to you
>>> to migrate it manually.
>>>
>>> It expects source files in the src directory.
>>> CSS files in the css directory.
>>> native files in the native directory, etc...
>>>
>>>
>>> On Wed, Mar 31, 2021 at 10:48 AM Dave Dyer  wrote:
>>>
>>>> FYI, your conversion scripts do not appear to handle legacy scripts
>>>> that have manually changed source paths.
>>>> All of my codename1 projects keep the actual sources in a separate
>>>> hierarchy from the eclipse/codename1
>>>> project gubbish.
>>>>
>>>>
>>>> On Tuesday, March 30, 2021 at 5:58:47 PM UTC-7 Dave Dyer wrote:
>>>>
>>>>> importing the project has some dangling errors.  I've tried both
>>>>> kitchensink and a new hello world project
>>>>> [image: err.jpg]
>>>>>
>>>>> On Tuesday, March 30, 2021 at 5:50:15 PM UTC-7 Steve Hannah wrote:
>>>>>
>>>>>> I haven't gotten to eclipse yet.  I've been working with IntelliJ,
>>>>>> NetBeans, and CLI so far.  Will be attacking Eclipse soon.
>>>>>> What errors are you getting, and in response to what commands?
>>>>>>
>>>>>> On Tue, Mar 30, 2021 at 5:48 PM Dave Dyer  wrote:
>>>>>>
>>>>>>> And what about the errors in the project produced when importing
>>>>>>> into eclipse?
>>>>>>>
>>>>>>>
>>>>>>> On Tuesday, March 30, 2021 at 5:46:25 PM UTC-7 Steve Hannah wrote:
>>>>>>>
>>>>>>>> Thanks.  Update your build.bat to this version.
>>>>>>>>
>>>>>>>> https://github.com/shannah/cn1-maven-archetypes/blob/master/cn1app-archetype/src/main/resources/archetype-resources/build.bat
>>>>>>>>
>>>>>>>> Update your run.bat to this version.
>>>>>>>>
>>>>>>>> https://github.com/shannah/cn1-maven-archetypes/blob/master/cn1app-archetype/src/main/resources/archetype-resources/run.bat
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Mar 30, 2021 at 5:22 PM Dave Dyer 
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> run the run.bat produced by maven
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Tuesday, March 30, 2021 at 5:13:00 PM UTC-7 Steve Hannah wrote:
>>>>>>>>>
>>>>>>>>>> What exact command are you running?  I'll try it on my Windows
>>>>>>>>>> machine.  The example working fine for me on Windows 10.  Might be 
>>>>>>>>>> some
>>>>>>>>>> differences in our commands.
>>>>>>>>>>
>>>>>>>>>> On Tue, Mar 30, 2021 at 5:05 PM Dave Dyer 
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> I missed sticking a w

Re: [codenameone-discussions] moving to mavin

2021-04-01 Thread Steve Hannah
Note:  Made the maven project more Eclipse friendly with 7.0.19 (available
now).  You would need to run migration again.
7.0.20 will be available in a few hours with a bug fix for native
interfaces on Android.

By "Eclipse Friendly", I mean that the project now contains launch files
for all of the main build targets so that they will show up in the run menu
- so you don't have to futz with CLI parameters for the common goals.

Steve

On Wed, Mar 31, 2021 at 10:52 AM Steve Hannah 
wrote:

> The migration tool expects source files to be in the standard locations.
>  If you've modified the project structure, it will be up to you to migrate
> it manually.
>
> It expects source files in the src directory.
> CSS files in the css directory.
> native files in the native directory, etc...
>
>
> On Wed, Mar 31, 2021 at 10:48 AM Dave Dyer  wrote:
>
>> FYI, your conversion scripts do not appear to handle legacy scripts that
>> have manually changed source paths.
>> All of my codename1 projects keep the actual sources in a separate
>> hierarchy from the eclipse/codename1
>> project gubbish.
>>
>>
>> On Tuesday, March 30, 2021 at 5:58:47 PM UTC-7 Dave Dyer wrote:
>>
>>> importing the project has some dangling errors.  I've tried both
>>> kitchensink and a new hello world project
>>> [image: err.jpg]
>>>
>>> On Tuesday, March 30, 2021 at 5:50:15 PM UTC-7 Steve Hannah wrote:
>>>
>>>> I haven't gotten to eclipse yet.  I've been working with IntelliJ,
>>>> NetBeans, and CLI so far.  Will be attacking Eclipse soon.
>>>> What errors are you getting, and in response to what commands?
>>>>
>>>> On Tue, Mar 30, 2021 at 5:48 PM Dave Dyer  wrote:
>>>>
>>>>> And what about the errors in the project produced when importing into
>>>>> eclipse?
>>>>>
>>>>>
>>>>> On Tuesday, March 30, 2021 at 5:46:25 PM UTC-7 Steve Hannah wrote:
>>>>>
>>>>>> Thanks.  Update your build.bat to this version.
>>>>>>
>>>>>> https://github.com/shannah/cn1-maven-archetypes/blob/master/cn1app-archetype/src/main/resources/archetype-resources/build.bat
>>>>>>
>>>>>> Update your run.bat to this version.
>>>>>>
>>>>>> https://github.com/shannah/cn1-maven-archetypes/blob/master/cn1app-archetype/src/main/resources/archetype-resources/run.bat
>>>>>>
>>>>>>
>>>>>> On Tue, Mar 30, 2021 at 5:22 PM Dave Dyer  wrote:
>>>>>>
>>>>>>> run the run.bat produced by maven
>>>>>>>
>>>>>>>
>>>>>>> On Tuesday, March 30, 2021 at 5:13:00 PM UTC-7 Steve Hannah wrote:
>>>>>>>
>>>>>>>> What exact command are you running?  I'll try it on my Windows
>>>>>>>> machine.  The example working fine for me on Windows 10.  Might be some
>>>>>>>> differences in our commands.
>>>>>>>>
>>>>>>>> On Tue, Mar 30, 2021 at 5:05 PM Dave Dyer 
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> I missed sticking a windows path into the command structure, with
>>>>>>>>> that converting
>>>>>>>>> kitchen sink runs, but the other 2 complaints stand.   The project
>>>>>>>>> produced has errors.
>>>>>>>>>
>>>>>>>>> On Tuesday, March 30, 2021 at 4:49:10 PM UTC-7 Steve Hannah wrote:
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Use the latest version.  7.0.17
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Tue, Mar 30, 2021 at 4:38 PM Dave Dyer 
>>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>> Well for a start then, sample "converting kitch sink" doesn't
>>>>>>>>>>> work
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Running the example from
>>>>>>>>>>> https://shannah.github.io/codenameone-maven-manual/#migrate-existing-project
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> [INFO] Pa

Re: [codenameone-discussions] moving to mavin

2021-03-31 Thread Steve Hannah
The migration tool expects source files to be in the standard locations.
 If you've modified the project structure, it will be up to you to migrate
it manually.

It expects source files in the src directory.
CSS files in the css directory.
native files in the native directory, etc...


On Wed, Mar 31, 2021 at 10:48 AM Dave Dyer  wrote:

> FYI, your conversion scripts do not appear to handle legacy scripts that
> have manually changed source paths.
> All of my codename1 projects keep the actual sources in a separate
> hierarchy from the eclipse/codename1
> project gubbish.
>
>
> On Tuesday, March 30, 2021 at 5:58:47 PM UTC-7 Dave Dyer wrote:
>
>> importing the project has some dangling errors.  I've tried both
>> kitchensink and a new hello world project
>> [image: err.jpg]
>>
>> On Tuesday, March 30, 2021 at 5:50:15 PM UTC-7 Steve Hannah wrote:
>>
>>> I haven't gotten to eclipse yet.  I've been working with IntelliJ,
>>> NetBeans, and CLI so far.  Will be attacking Eclipse soon.
>>> What errors are you getting, and in response to what commands?
>>>
>>> On Tue, Mar 30, 2021 at 5:48 PM Dave Dyer  wrote:
>>>
>>>> And what about the errors in the project produced when importing into
>>>> eclipse?
>>>>
>>>>
>>>> On Tuesday, March 30, 2021 at 5:46:25 PM UTC-7 Steve Hannah wrote:
>>>>
>>>>> Thanks.  Update your build.bat to this version.
>>>>>
>>>>> https://github.com/shannah/cn1-maven-archetypes/blob/master/cn1app-archetype/src/main/resources/archetype-resources/build.bat
>>>>>
>>>>> Update your run.bat to this version.
>>>>>
>>>>> https://github.com/shannah/cn1-maven-archetypes/blob/master/cn1app-archetype/src/main/resources/archetype-resources/run.bat
>>>>>
>>>>>
>>>>> On Tue, Mar 30, 2021 at 5:22 PM Dave Dyer  wrote:
>>>>>
>>>>>> run the run.bat produced by maven
>>>>>>
>>>>>>
>>>>>> On Tuesday, March 30, 2021 at 5:13:00 PM UTC-7 Steve Hannah wrote:
>>>>>>
>>>>>>> What exact command are you running?  I'll try it on my Windows
>>>>>>> machine.  The example working fine for me on Windows 10.  Might be some
>>>>>>> differences in our commands.
>>>>>>>
>>>>>>> On Tue, Mar 30, 2021 at 5:05 PM Dave Dyer 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I missed sticking a windows path into the command structure, with
>>>>>>>> that converting
>>>>>>>> kitchen sink runs, but the other 2 complaints stand.   The project
>>>>>>>> produced has errors.
>>>>>>>>
>>>>>>>> On Tuesday, March 30, 2021 at 4:49:10 PM UTC-7 Steve Hannah wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Use the latest version.  7.0.17
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Tue, Mar 30, 2021 at 4:38 PM Dave Dyer 
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Well for a start then, sample "converting kitch sink" doesn't work
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Running the example from
>>>>>>>>>> https://shannah.github.io/codenameone-maven-manual/#migrate-existing-project
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> [INFO] Parameter: artifactId, Value: kitchensink
>>>>>>>>>> [INFO]
>>>>>>>>>> 
>>>>>>>>>> [INFO] BUILD FAILURE
>>>>>>>>>> [INFO]
>>>>>>>>>> 
>>>>>>>>>> [INFO] Total time:  2.995 s
>>>>>>>>>> [INFO] Finished at: 2021-03-30T15:08:19-07:00
>>>>>>>>>> [INFO]
>>>>>>>>>> 
>>>>>>>>>> [ERROR] Failed to execute goal
>>>>>>>>>> org.apache.maven.plugins:maven-archety

Re: [codenameone-discussions] moving to mavin

2021-03-30 Thread Steve Hannah
Thanks.  Update your build.bat to this version.
https://github.com/shannah/cn1-maven-archetypes/blob/master/cn1app-archetype/src/main/resources/archetype-resources/build.bat

Update your run.bat to this version.
https://github.com/shannah/cn1-maven-archetypes/blob/master/cn1app-archetype/src/main/resources/archetype-resources/run.bat


On Tue, Mar 30, 2021 at 5:22 PM Dave Dyer  wrote:

> run the run.bat produced by maven
>
>
> On Tuesday, March 30, 2021 at 5:13:00 PM UTC-7 Steve Hannah wrote:
>
>> What exact command are you running?  I'll try it on my Windows machine.
>> The example working fine for me on Windows 10.  Might be some differences
>> in our commands.
>>
>> On Tue, Mar 30, 2021 at 5:05 PM Dave Dyer  wrote:
>>
>>> I missed sticking a windows path into the command structure, with that
>>> converting
>>> kitchen sink runs, but the other 2 complaints stand.   The project
>>> produced has errors.
>>>
>>> On Tuesday, March 30, 2021 at 4:49:10 PM UTC-7 Steve Hannah wrote:
>>>
>>>>
>>>> Use the latest version.  7.0.17
>>>>
>>>>
>>>> On Tue, Mar 30, 2021 at 4:38 PM Dave Dyer  wrote:
>>>>
>>>>> Well for a start then, sample "converting kitch sink" doesn't work
>>>>>
>>>>>
>>>>> Running the example from
>>>>> https://shannah.github.io/codenameone-maven-manual/#migrate-existing-project
>>>>>
>>>>>
>>>>> [INFO] Parameter: artifactId, Value: kitchensink
>>>>> [INFO]
>>>>> 
>>>>> [INFO] BUILD FAILURE
>>>>> [INFO]
>>>>> 
>>>>> [INFO] Total time:  2.995 s
>>>>> [INFO] Finished at: 2021-03-30T15:08:19-07:00
>>>>> [INFO]
>>>>> 
>>>>> [ERROR] Failed to execute goal
>>>>> org.apache.maven.plugins:maven-archetype-plugin:3.2.0:generate
>>>>> (default-cli) on project standalone-pom: A Maven project already exists in
>>>>> the directory C:\Users\Ddyer\Downloads\kitchensink -> [Help 1]
>>>>> [ERROR]
>>>>> [ERROR] To see the full stack trace of the errors, re-run Maven with
>>>>> the -e switch.
>>>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>>>> [ERROR]
>>>>> [ERROR] For more information about the errors and possible solutions,
>>>>> please read the following articles:
>>>>> [ERROR] [Help 1]
>>>>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>>>>> [INFO]
>>>>> 
>>>>> [INFO] BUILD FAILURE
>>>>> [INFO]
>>>>> 
>>>>> [INFO] Total time:  5.815 s
>>>>> [INFO] Finished at: 2021-03-30T15:08:19-07:00
>>>>> [INFO]
>>>>> 
>>>>> [ERROR] Failed to execute goal
>>>>> com.codenameone:codenameone-maven-plugin:7.0.13:generate-app-project
>>>>> (default-cli) on project standalone-pom: Failed to generate project using
>>>>> cn1app-archetype.  Exit code 1 -> [Help 1]
>>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>>>>> execute goal
>>>>> com.codenameone:codenameone-maven-plugin:7.0.13:generate-app-project
>>>>> (default-cli) on project standalone-pom: Failed to generate project using
>>>>> cn1app-archetype.  Exit code 1
>>>>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
>>>>> (MojoExecutor.java:215)
>>>>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
>>>>> (MojoExecutor.java:156)
>>>>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
>>>>> (MojoExecutor.java:148)
>>>>> at
>>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
>>>>> (LifecycleModuleBuilder.java:117)
>>>>> at
>>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilde

Re: [codenameone-discussions] moving to mavin

2021-03-30 Thread Steve Hannah
What exact command are you running?  I'll try it on my Windows machine.
The example working fine for me on Windows 10.  Might be some differences
in our commands.

On Tue, Mar 30, 2021 at 5:05 PM Dave Dyer  wrote:

> I missed sticking a windows path into the command structure, with that
> converting
> kitchen sink runs, but the other 2 complaints stand.   The project
> produced has errors.
>
> On Tuesday, March 30, 2021 at 4:49:10 PM UTC-7 Steve Hannah wrote:
>
>>
>> Use the latest version.  7.0.17
>>
>>
>> On Tue, Mar 30, 2021 at 4:38 PM Dave Dyer  wrote:
>>
>>> Well for a start then, sample "converting kitch sink" doesn't work
>>>
>>>
>>> Running the example from
>>> https://shannah.github.io/codenameone-maven-manual/#migrate-existing-project
>>>
>>>
>>> [INFO] Parameter: artifactId, Value: kitchensink
>>> [INFO]
>>> 
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> 
>>> [INFO] Total time:  2.995 s
>>> [INFO] Finished at: 2021-03-30T15:08:19-07:00
>>> [INFO]
>>> 
>>> [ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-archetype-plugin:3.2.0:generate
>>> (default-cli) on project standalone-pom: A Maven project already exists in
>>> the directory C:\Users\Ddyer\Downloads\kitchensink -> [Help 1]
>>> [ERROR]
>>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>>> -e switch.
>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>> [ERROR]
>>> [ERROR] For more information about the errors and possible solutions,
>>> please read the following articles:
>>> [ERROR] [Help 1]
>>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>>> [INFO]
>>> 
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> 
>>> [INFO] Total time:  5.815 s
>>> [INFO] Finished at: 2021-03-30T15:08:19-07:00
>>> [INFO]
>>> 
>>> [ERROR] Failed to execute goal
>>> com.codenameone:codenameone-maven-plugin:7.0.13:generate-app-project
>>> (default-cli) on project standalone-pom: Failed to generate project using
>>> cn1app-archetype.  Exit code 1 -> [Help 1]
>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>>> execute goal
>>> com.codenameone:codenameone-maven-plugin:7.0.13:generate-app-project
>>> (default-cli) on project standalone-pom: Failed to generate project using
>>> cn1app-archetype.  Exit code 1
>>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
>>> (MojoExecutor.java:215)
>>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
>>> (MojoExecutor.java:156)
>>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute
>>> (MojoExecutor.java:148)
>>> at
>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
>>> (LifecycleModuleBuilder.java:117)
>>> at
>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
>>> (LifecycleModuleBuilder.java:81)
>>> at
>>> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>>> (SingleThreadedBuilder.java:56)
>>> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
>>> (LifecycleStarter.java:128)
>>> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>>> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>>> at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>>> at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
>>> at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
>>> at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke
>>> (NativeMethodAccessorImpl.java:62)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke
>>> (DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.r

Re: [codenameone-discussions] moving to mavin

2021-03-30 Thread Steve Hannah
.lifecycle.internal.MojoExecutor.execute
> (MojoExecutor.java:148)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:117)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> (LifecycleModuleBuilder.java:81)
> at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
> (SingleThreadedBuilder.java:56)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute
> (LifecycleStarter.java:128)
> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
> at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
> at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
> at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
> at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
> at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
> at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke (Method.java:497)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced
> (Launcher.java:282)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch
> (Launcher.java:225)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
> (Launcher.java:406)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main
> (Launcher.java:347)
> [ERROR]
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
> C:\Users\Ddyer\Downloads>
>
> Also, the "create skeleton" produces a skeleton which has errors
> [image: err.jpg]
>
> and a .bat file for windows which doesn't run:
>
> G:\share\projects\eclipse\mtest>.\run.bat
> The syntax of the command is incorrect.
>
> G:\share\projects\eclipse\mtest>
> On Tuesday, March 30, 2021 at 3:39:19 PM UTC-7 Steve Hannah wrote:
>
>> Use the usual channels you would use for any issue.  Questions in forum
>> or stack overflow.  If you have a pro account, then you can use email
>> support.  Bugs in issue tracker (Just use main Codenameone One github repo
>> issue tracker.. easier to keep track of them then).
>>
>> Best regards
>>
>> Steve
>>
>> On Tue, Mar 30, 2021 at 2:04 PM Dave Dyer  wrote:
>>
>>>
>>> What is your preferred forum for issues related to mavin?  Here?
>>> StackOverflow? Github?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "CodenameOne Discussions" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to codenameone-discu...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/codenameone-discussions/a5366caa-4d55-4fcd-8259-580372640f6fn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/codenameone-discussions/a5366caa-4d55-4fcd-8259-580372640f6fn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Steve Hannah
>> Software Developer
>> Codename One
>> http://www.codenameone.com
>>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/544eb6fe-6541-465e-b4cd-4346714f31a1n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/544eb6fe-6541-465e-b4cd-4346714f31a1n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKUHMHbOaRgfK3i9jqxOAOtd6qBb12i04oSrsNY%3D-UL9YA%40mail.gmail.com.


Re: [codenameone-discussions] moving to mavin

2021-03-30 Thread Steve Hannah
Use the usual channels you would use for any issue.  Questions in forum or
stack overflow.  If you have a pro account, then you can use email
support.  Bugs in issue tracker (Just use main Codenameone One github repo
issue tracker.. easier to keep track of them then).

Best regards

Steve

On Tue, Mar 30, 2021 at 2:04 PM Dave Dyer  wrote:

>
> What is your preferred forum for issues related to mavin?  Here?
> StackOverflow? Github?
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/a5366caa-4d55-4fcd-8259-580372640f6fn%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/a5366caa-4d55-4fcd-8259-580372640f6fn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKU2ex3i7oioaJs4a5FqZH-g9USW-10QwuVDwMRUPB7yVA%40mail.gmail.com.


Re: [codenameone-discussions] Re: Net Communications on iphone device

2021-03-19 Thread Steve Hannah
Have you tried setting the request method to POST?

URL url = new URL("https://symdesigns.com/php/export.php";);
URL.HttpURLConnection link = (URL.HttpURLConnection)url.openConnection();
link.setRequestMethod("POST");

...



On Fri, Mar 19, 2021 at 9:14 AM Dennis Rogers  wrote:

> I don't know if this helps but here's the php server code that reads the
> credentials
>
> $std = fopen("php://input","r");
> if($std==false) logError("Can't open input");
> $ln1 = fgets($std);
> $reply = sscanf(str_replace(" ","",$ln1),"%s");
> $email = trim($reply[0],"\n");
> logError(sprintf("line 1 = %s, email = %s",$ln1,$email));
> $ln2 = fgets($std);
> $reply = sscanf(str_replace(" ","",$ln2),"%s");
> $passwd = trim($reply[0],"\n");
> logError(sprintf("line 2 = %s, passwd = %s",$ln2,$passwd));
>
> When running on the iphone the strings $ln1,$email, $ln2, and $passwd are
> blank. I 'm able to view the output from the logError function.
> -Dennis
>
> On Friday, March 19, 2021 at 12:06:02 PM UTC-4 Dennis Rogers wrote:
>
>> Thanks for trying the test code. "Success" is just the name of the
>> dialog. "nok" means that the credentials were not correct. Actually, from
>> the server logs, it appears to have received a blank email and password.
>>
>> On Thursday, March 18, 2021 at 4:02:12 PM UTC-4 Steve Hannah wrote:
>>
>>> I just tried building the test:
>>>
>>> Form hi = new Form("Hi World", BoxLayout.y());
>>> Button test = new Button("Test");
>>> hi.add(test);
>>> test.addActionListener(e -> {
>>> try {
>>>
>>> URL url = new URL("https://symdesigns.com/php/export.php";);
>>>
>>>
>>> URL.URLConnection link = url.openConnection();
>>> link.setDoOutput(true);
>>> link.setDoInput(true);
>>> OutputStream os = link.getOutputStream();
>>> os.write(("te...@x.com\n").getBytes());
>>> os.write(("f47ba92cf7\n").getBytes());
>>> os.close();
>>>
>>> InputStream is = link.getInputStream();
>>> String ans = Util.readToString(is);
>>>
>>> Dialog.show("Success", ans, "OK", null);
>>> } catch(Exception err) {
>>> Dialog.show("Error", err.toString(), "OK", null);
>>> Log.p("URL error");
>>> Log.e(err);
>>> }
>>> });
>>>
>>> hi.show();
>>>
>>>
>>> Codename One Simulator:  Passed
>>> Xcode Simulator (running iPhone 6 - iOS 12.1) : Passed
>>> iPhone 5 - iOS 10.3.3 (actual device) : Passed
>>>
>>>
>>> By "Passed", I mean I get a dialog that says "Success" in the title and 
>>> "Nok" in the body.
>>>
>>>
>>>
>>>
>>> On Thu, Mar 18, 2021 at 11:44 AM Dennis Rogers 
>>> wrote:
>>>
>>>>
>>>> The server received empty strings for the email and the password from
>>>> the iphone device (but it received the correct strings from the simulator
>>>> and the android device). This is very frustrating!
>>>>
>>>> I'm not sure what you mean by "chunked requests". Do you mean requests
>>>> that have been gziped?
>>>> On Wednesday, March 17, 2021 at 11:05:55 PM UTC-4 Shai Almog wrote:
>>>>
>>>>> I was able to run it and got a NOK from the server. The question is
>>>>> what did the server get?
>>>>> Can your server deal with chunked requests?
>>>>> gzip?
>>>>>
>>>>> On Wednesday, March 17, 2021 at 7:28:48 AM UTC+2 a2nd...@gmail.com
>>>>> wrote:
>>>>>
>>>>>> No problem!
>>>>>>
>>>>>>
>>>>>> On Tuesday, March 16, 2021 at 11:03:16 PM UTC-4 Shai Almog wrote:
>>>>>>
>>>>>>> I'll look into it. It works in the simulator but I have a couple of
>>>>>>> issues with my environment so it will take me. a couple of days to
>>>>>>> reproduce it on a device.
>>>>>>>
>>>>>>> On Tuesday, March 16, 2021 at 11:37:29 PM UTC+2 a2nd...@gmail.com
>>>>>>> wrote:
>>>>>>&

Re: [codenameone-discussions] Re: Net Communications on iphone device

2021-03-18 Thread Steve Hannah
> the iphone device.
>>>>>>>>>>>>>>> The code still works ok on the simulator and on also on a
>>>>>>>>>>>>>>> real Android device.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Wednesday, March 10, 2021 at 10:28:42 PM UTC-5 Shai Almog
>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Try using String ans = Util.readToString(); which might be
>>>>>>>>>>>>>>>> better.
>>>>>>>>>>>>>>>> Is the code still working on the simulator after the
>>>>>>>>>>>>>>>> changes?
>>>>>>>>>>>>>>>> Is it working on Android?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Wednesday, March 10, 2021 at 5:09:18 PM UTC+2
>>>>>>>>>>>>>>>> a2nd...@gmail.com wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Replacing flush() with close() didn't make a difference.
>>>>>>>>>>>>>>>>> Here's the code I used without the buffer:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> os = link.getOutputStream();
>>>>>>>>>>>>>>>>> os.write((nemail + "\n").getBytes());
>>>>>>>>>>>>>>>>> pwHash = getHash(nemail + npasswd);
>>>>>>>>>>>>>>>>> os.write((pwHash + "\n").getBytes());
>>>>>>>>>>>>>>>>> os.close();
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> is = link.getInputStream();
>>>>>>>>>>>>>>>>> String ans = readLine(is);
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> static String readLine(InputStream stream) {
>>>>>>>>>>>>>>>>> byte[] b = new byte[80];
>>>>>>>>>>>>>>>>> String s = "";
>>>>>>>>>>>>>>>>> int i = 0;
>>>>>>>>>>>>>>>>> try {
>>>>>>>>>>>>>>>>> b[i] = (byte) stream.read();
>>>>>>>>>>>>>>>>> while((b[i] != 10 && (b[i] != 13))) {
>>>>>>>>>>>>>>>>> i++;
>>>>>>>>>>>>>>>>> b[i] = (byte) stream.read();
>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>> b[i] = 0;
>>>>>>>>>>>>>>>>>return new String(b,0,i);
>>>>>>>>>>>>>>>>> } catch(IOException e) {
>>>>>>>>>>>>>>>>> Log.e(e);
>>>>>>>>>>>>>>>>> return null:
>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>> }
>>>>>>>>>>>>>>>>> On Tuesday, March 9, 2021 at 10:23:18 PM UTC-5 Shai Almog
>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Can you include the full code after removing the buffers?
>>>>>>>>>>>>>>>>>> Also try replacing flush() with close(). That might help.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On Tuesday, March 9, 2021 at 3:31:25 PM UTC+2
>>>>>>>>>>>>>>>>>> a2nd...@gmail.com wrote:
>>>>>>>>>>>>>>>>>>
>>>>>&

Re: [codenameone-discussions] Re: Advice from a developer

2021-03-11 Thread Steve Hannah
rprise customer that does not want that the user
>>> can select text in the BrowserComponent,
>>> if they create a prototype they see that CEF is not able to do so and
>>> the text is selectable, such a simple basic issue,
>>> they check if there is an issue on github and they see that it has been
>>> opened for months,
>>> well, they go away immediately.
>>> Yes, maybe it is important only for them now but you are aware that it
>>> is technically important nonetheless,
>>> and fix it, feeling lucky to have the possibility to prevent other
>>> customers from stumbling into it.]
>>>
>>> I have a free account but after 10 months I cannot be dismissed at the
>>> final stage of publishing the app.
>>> This is just common sense.
>>>
>>> I hope this does not upset you tonight, but it is important because you
>>> can improve.
>>> Regards
>>>
>>>
>>> Il giorno mercoledì 10 marzo 2021 alle 04:35:14 UTC+1 Shai Almog ha
>>> scritto:
>>>
>>>> I think you have unreasonable expectations. I spend a lot of time
>>>> supporting and trying to help regardless of your subscription status.
>>>> We do resolve a lot of issues for all subscription levels but our
>>>> general rule of thumb is about blockers and big issues. This is a big issue
>>>> for you but it isn't for anyone else. Most people don't mix HTML and Java
>>>> code too much. These have always been the difficult edge cases in every
>>>> platform that mixes those.
>>>> Yes CEF does have issues but those issues are limited to the simulator
>>>> for the most part. On the device the implementation has been the same for
>>>> years and literally no one complained about the problem you ran into.
>>>> Since it happens on Android you can debug this using Android Studio. I
>>>> don;t know if it happens on iOS but I repeatedly made it clear that you
>>>> need an iOS device and need to test iteratively. There's a limit to working
>>>> with the simulator and when you work heavily on native peers (and HTML is a
>>>> native peer) you need a device.
>>>>
>>>> On Tuesday, March 9, 2021 at 9:48:34 AM UTC+2 P5music wrote:
>>>>
>>>>> Already done debugging on Android in regard to this:
>>>>> BrowserComponent: mouse events handled differently in Android device
>>>>> than simulator (google.com)
>>>>> <https://groups.google.com/g/codenameone-discussions/c/121OlNeKXh0>
>>>>>
>>>>> Mouse events for long press are not working. I filed an issue.
>>>>> It seems that you released the CEF without even bothering to check
>>>>> some HTML-Javascript content inside.
>>>>>
>>>>> Now I cannot publish my app because the very first functioning of a
>>>>> BrowserComponent is not available. And I already wasted a month of Apple
>>>>> developer program, not mentioning being on this project from June 2020.
>>>>>
>>>>> I have a free account but one could look at it from a different
>>>>> perspective: you released a new feature without any testing and luckily 
>>>>> you
>>>>> have an early tester for free.
>>>>> But you are not listening to it.
>>>>>
>>>>> When I subscribed as CN developer I received an e-mail saying like
>>>>> "please help us to spread the use of the CodenameOne" or something 
>>>>> similar.
>>>>> But how are we supposed to help if you do not fix issues of such
>>>>> importance, that are already deployed in fact.
>>>>>
>>>>> Believe me, many times I returned to my Swift project, not difficult
>>>>> to update it because a few lines of development were possible for me to do
>>>>> in months with this very painful day-to-day before-going-bed "free"
>>>>> assistance you think is doing good for CN here and on StackOverflow,
>>>>>
>>>>> but Swift/SwiftUI is so awful that I had to continue with the CN
>>>>> project,
>>>>>
>>>>> that I like, do not misunderstand me, it has many avantages I want in
>>>>> a project,
>>>>>
>>>>> and I believe in having an easy way to develop for iOS without
>>>>> surrendering to Apple.
>>>>> This it the "plus" of CodenameOne, not the cross-platform stuff for
>>>>> Android or Blackberry or desktop.
>>>>>
>>>>> How do you see it?
>>>>> Regards
>>>>>
>>>> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/fa8ca097-ab2d-4db7-b8d4-6e89d112bf85n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/fa8ca097-ab2d-4db7-b8d4-6e89d112bf85n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVG-nFTLrE8M%2B-Ng6veDdVDCgvLkebYf8_UzL0w3WAo2w%40mail.gmail.com.


Re: [codenameone-discussions] Re: ImageViewer panning out of boundaries when zooming

2021-03-10 Thread Steve Hannah
Should be fixed now (in git).
https://github.com/codenameone/CodenameOne/commit/7df3509c3091d30a9547caf222e0e00cd3ccee93

On Wed, Mar 10, 2021 at 6:16 AM Carlos Verdier  wrote:

> Great, thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/ebdfeae1-107f-4e23-abcb-4384653cd5b8o%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/ebdfeae1-107f-4e23-abcb-4384653cd5b8o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWjwfUmJyGzZs7f_c8yF5ATiT-rJE_gSwSvkB4y8UEsUg%40mail.gmail.com.


Re: [codenameone-discussions] Re: ImageViewer panning out of boundaries when zooming

2021-03-10 Thread Steve Hannah
OK.  I see what you mean.  I should have a fix for Friday.

On Mon, Mar 8, 2021 at 11:06 AM Carlos Verdier  wrote:

> Just double tap on the image to zoom and then pan it around. You will see
> that you can pan outside the boundaries, which should not happen. If you
> style the form background color, the failure is more evident.
>
> If you revert the changes that Shai points out above, it works as it
> should.
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/caf919f8-d5ea-47e8-8a96-a975762b483co%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/caf919f8-d5ea-47e8-8a96-a975762b483co%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWhtutAvZ0ZR4k6%3DUBWUr51ABzhuT1X%3DdLZm1F2ucHHnw%40mail.gmail.com.


Re: [codenameone-discussions] Re: BrowserComponent: mouse events handled differently in Android device than simulator

2021-03-09 Thread Steve Hannah
e:
>>>>>>
>>>>>>> The click is on the iFrames inside the HTML, so it is on the BC.
>>>>>>> It works on the simulator:
>>>>>>> click and long-press gestures are handled with a timer and comparing
>>>>>>> the timestamps.
>>>>>>> The issue is that
>>>>>>> when I long-press on the BC when the app runs on the real Android
>>>>>>> device,
>>>>>>> even the first mouse event (mousedown) is not fired,
>>>>>>> it is like the BC has a timer itself and does not fire the mousedown
>>>>>>> event if the mouseup event is too far in time,
>>>>>>> while in the simulator the mousedown event is issued every time,
>>>>>>> regardless of the timing of the subsequent mouseup event.
>>>>>>>
>>>>>>> Regards
>>>>>>>
>>>>>>> Il giorno lunedì 22 febbraio 2021 alle 03:29:37 UTC+1 Shai Almog ha
>>>>>>> scritto:
>>>>>>>
>>>>>>>> Are you long clicking on the browser component or somewhere else?
>>>>>>>> It's unclear from the question.  Do you have a screenshot of the place
>>>>>>>> you're clicking on?
>>>>>>>>
>>>>>>>> On Sunday, February 21, 2021 at 1:17:56 PM UTC+2 P5music wrote:
>>>>>>>>
>>>>>>>>> P5music
>>>>>>>>> 12:16 (ora)
>>>>>>>>> a CodenameOne Discussions
>>>>>>>>> I am testing my CodenameApp on a real Android device.
>>>>>>>>> The main screen has a table layout with a container on the left.
>>>>>>>>> The container has a container inside, that has a BrowserComponent
>>>>>>>>> inside in BorderLayout.CENTER.
>>>>>>>>> The issue is not about layout.
>>>>>>>>>
>>>>>>>>> I have some callbacks for the BC that on the simulator handle
>>>>>>>>> mouseup/down on the iFrames in the HTML.
>>>>>>>>> That callback work also for handing long-press on the same HTML
>>>>>>>>> elements.
>>>>>>>>> Everything is fine. If I add a LongPressListener it gets not
>>>>>>>>> called but it is not needed at all.
>>>>>>>>>
>>>>>>>>> When using the app on the real Android device the clicks are
>>>>>>>>> handled as in the simulator
>>>>>>>>> while
>>>>>>>>> the long press is not.
>>>>>>>>> I debugged and it seems that the events are not fired at all.
>>>>>>>>> I mean,
>>>>>>>>> a click is mousedown and mouseup within a short time range.
>>>>>>>>> a longpress is the same where the mouseup event is after 500ms.
>>>>>>>>> The app uses a timer.
>>>>>>>>>
>>>>>>>>> But the initial mousedown event itself is not called, and also the
>>>>>>>>> LongPressListener is not called.
>>>>>>>>>
>>>>>>>>> So what is happening? This is very important because the
>>>>>>>>> long-press is for displaying a pop-up  menu. But only clicks work.
>>>>>>>>> Thanks in advance
>>>>>>>>>
>>>>>>>> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/bc6eb9a2-32d0-4285-93e3-f9b6bea8060an%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/bc6eb9a2-32d0-4285-93e3-f9b6bea8060an%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Web Lite Solutions Corp.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CABiRg%2BTp4C2qUwpgMVn1DpRcLfOjfBqd_yoz1XvxGgUGC5LFDQ%40mail.gmail.com.


Re: [codenameone-discussions] Re: RAD Chat Room Verify Error: ChatRoomView overrides final method AbstractEntityView.bind

2021-01-18 Thread Steve Hannah
Thanks for reporting this.  I've updated the RADChatRoom library in
CodenameOneLibs so it should be available in the control center soon.

Steve

On Fri, Jan 15, 2021 at 10:39 PM Shai Almog  wrote:

> Thanks, we'll check.
>
> On Friday, January 15, 2021 at 11:11:05 PM UTC+2 davidwaf wrote:
>
>> Ok I got this to work. Manually replacing the cnlibs downloaded via the
>> Plugin with these https://github.com/shannah/RADChatRoom/tree/master/bin
>> did it.
>> It looks like the CN1plugin  is still using 'older' versions?
>>
>> /dww
>>
>> On Fri, Jan 15, 2021 at 10:04 PM David Wafula  wrote:
>>
>>> Hi,
>>>
>>> Am trying to integrate the RAD Chatroom in my existing (Non-MVC)
>>> application. However, I get this error when I try to run the code below :
>>>
>>>
>>> java.lang.VerifyError: class com.codename1.rad.ui.chatroom.ChatRoomView
>>> overrides final method com.codename1.rad.ui.AbstractEntityView.bind()V
>>> at java.base/java.lang.ClassLoader.defineClass1(Native Method)
>>>
>>> My code:
>>>
>>>
>>> public class RChatRoom extends Form {
>>>
>>> public RChatRoom() {
>>> setLayout(new BorderLayout());
>>>
>>> ChatRoomView.ViewModel room = new ChatRoomView.ViewModel();
>>>
>>> ChatBubbleView.ViewModel message = new
>>> ChatBubbleView.ViewModel();
>>> message.messageText("Hello World");
>>> room.addMessages(message);
>>>
>>> ChatRoomView view = new ChatRoomView(room, this);
>>> add(BorderLayout.CENTER, view);
>>> }
>>> }
>>>
>>>
>>> I am using Oracle JDK12 on Netbeans 12.2
>>>
>>> What could be the issue ?
>>>
>>> Thanks
>>> --
>>> /dww
>>>
>>
>>
>> --
>> David W
>>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/37f1385c-88c6-4faf-9627-ce4387445c4fn%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/37f1385c-88c6-4faf-9627-ce4387445c4fn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXTNpBM0K6mK5SSh2ds5CnbwCSbfi2g_nREFJEu_xyaGQ%40mail.gmail.com.


Re: [codenameone-discussions] Re: Request to approve PR

2021-01-04 Thread Steve Hannah
I have committed an alternate fix for this issue that will be available in
the next update on Friday.  I commented in the pull request with more
detail on this change.

Steve

On Sat, Jan 2, 2021 at 1:56 AM Marisole Aromatherapy 
wrote:

> No worries, hope it can be reviewed soon. If there is any issue let me
> know.
>
> Thank you
>
> Javier
>
>
>
> On Sat, 2 Jan 2021, 06:15 Shai Almog,  wrote:
>
>> Hi,
>> Sorry about that.
>> Steve has an issue with the approach taken by that PR. I'll ask him to
>> communicate that again when he gets back from vacation.
>>
>> On Friday, January 1, 2021 at 5:04:05 PM UTC+2 javier...@gmail.com wrote:
>>
>>> Hi all, happy new year 2021
>>>
>>> 1 month ago, I submitted the following PR to allow clearing TextFields
>>> on Android without needing to close and re-open the native keyboard. This
>>> is a common feature of chat screens where when the "send" button is pressed
>>> the user needs to keep typing subsequent messages without seeing the
>>> keyboard fly up and down the screen
>>>
>>> https://github.com/codenameone/CodenameOne/pull/3319
>>>
>>> I have delayed my work as much as possible, but I'm now reaching a point
>>> where I have to package a version and publish. This feature is a crucial
>>> part of it
>>>
>>> The PR originally consisted of a 1-line change in the native Android
>>> port that would allow this functionality via a native call
>>>
>>> I was asked to expand the PR to expose this new functionality as a
>>> general feature of non-native CN1. I included that in the PR
>>>
>>> Can one of the following actions be taken some time soon?
>>>
>>> 1- Review and approve full PR
>>> 2- Approve the 1-line change
>>>
>>> Thanks in advance
>>>
>>> Javier
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "CodenameOne Discussions" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to codenameone-discussions+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/codenameone-discussions/281af64b-acdb-487e-aabc-a1052c29bd7en%40googlegroups.com
>> <https://groups.google.com/d/msgid/codenameone-discussions/281af64b-acdb-487e-aabc-a1052c29bd7en%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/CAG90yJ0Z5N2CwHce7H6yw_69PEevE3vSaXHK%3DyOnJyVFtAN%2Bzw%40mail.gmail.com
> <https://groups.google.com/d/msgid/codenameone-discussions/CAG90yJ0Z5N2CwHce7H6yw_69PEevE3vSaXHK%3DyOnJyVFtAN%2Bzw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXyFuN%3DUNdBMJc6N4yQ%2BKG8dm6KE3ic4TiFN%3D1jkLJXsw%40mail.gmail.com.


Re: [codenameone-discussions] Re: BrowserComponent becomes blank when a Dialog is displayed

2020-12-22 Thread Steve Hannah
> So why obfuscate the underlying form in the first place? Why making things
> like that the WebView is blank?
>

Dialog IS a Form.  Only one Form is displayed at a time.  To create the
effect that the previous form is present, we take a screenshot of the form,
and display it as a background to the Dialog.

An InteractionDialog is NOT a Form.  It is a component that is rendered in
the current form's hierarchy.

This is the fundamental distinction, and all other differences in behaviour
stem from this.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVn0it8EhoK3LO8qvqXKTZNv0KKGBQzo2%2Bg-1LyuDNovw%40mail.gmail.com.


Re: [codenameone-discussions] Re: BrowserComponent becomes blank when a Dialog is displayed

2020-12-22 Thread Steve Hannah
aybe you mean that some of the supported platforms of Codename
>>>>>>>>> cannot do that?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Il giorno giovedì 17 dicembre 2020 alle 04:37:55 UTC+1 Shai Almog
>>>>>>>>> ha scritto:
>>>>>>>>>
>>>>>>>>>> It's inconsistent on devices. That's the biggest problem.
>>>>>>>>>> We can't grab a screenshot of a browser component on the device
>>>>>>>>>> due to technical/security concerns so we can't implement dialog 
>>>>>>>>>> properly
>>>>>>>>>> when a browser component is below it.
>>>>>>>>>>
>>>>>>>>>> On Wednesday, December 16, 2020 at 1:29:52 PM UTC+2 P5music wrote:
>>>>>>>>>>
>>>>>>>>>>> I reverted my code back to using Dialogs instead of
>>>>>>>>>>> InteractionDialogs. The code is much simpler and readable. I see 
>>>>>>>>>>> that now
>>>>>>>>>>> the Dialog does not block the BrowserComponents in the underlying 
>>>>>>>>>>> layout,
>>>>>>>>>>> so it can be used.
>>>>>>>>>>>
>>>>>>>>>>> [I was said, if I am not wrong, that when the Dialog is
>>>>>>>>>>> displayed it is like another form is shown, unlike the 
>>>>>>>>>>> InteractionDialog.
>>>>>>>>>>> And a sort of freezed image of the previous screen is displayed, it 
>>>>>>>>>>> is sort
>>>>>>>>>>> of fake. No problems for me.
>>>>>>>>>>> When the Dialog is dismissed the BC comes back. It seems that it
>>>>>>>>>>> is just displayed again and not reloaded (I see no onload event). 
>>>>>>>>>>> This is
>>>>>>>>>>> good.
>>>>>>>>>>> My advice is to perfection Dialog and not InteractionDialog,
>>>>>>>>>>> because with ID mouse events leak onto the underlying form and have 
>>>>>>>>>>> to be
>>>>>>>>>>> handled, as also has the back command.]
>>>>>>>>>>> But
>>>>>>>>>>> I see that while the Dialog is displayed, the underlying
>>>>>>>>>>> BrowserComponents are empty and all white (although greyed out).
>>>>>>>>>>> When the Dialog is displayed I see that the other UI components
>>>>>>>>>>> are displayed with their content, so why just the BrowserComponent 
>>>>>>>>>>> is
>>>>>>>>>>> blank? Maybe this is a bug and it was forgotten to make its 
>>>>>>>>>>> "screenshot",
>>>>>>>>>>> like for other components?
>>>>>>>>>>> Is it so also on devices?
>>>>>>>>>>>
>>>>>>>>>>> Thanks, regards
>>>>>>>>>>>
>>>>>>>>>>> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/891d09e5-44b6-4b70-a901-64eef80e5dacn%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/891d09e5-44b6-4b70-a901-64eef80e5dacn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKUPQL4DrGgWqUXkWbwk3N7U5C2B3eHbO70Vj6wVQzv_0Q%40mail.gmail.com.


Re: [codenameone-discussions] Is InteractionDialog advised to be used instead of Dialog for UI threading?

2020-12-14 Thread Steve Hannah
It is a choice.  Both are viable, but be aware that a Dialog is *actually*
a separate form.   When you're looking at the current form underneath it,
you're actually looking at an image snapshot of the form that is taken just
before the dialog is shown.  This works great most of the time, but there
are edge cases where you might want the background form to be "live".  One
such case is if the form includes any peer components (e.g. web browser),
since they won't be rendered to a mutable image.  Due to this, I often opt
for InteractionDialog or one of its derivatives (ToastBar, Sheet, etc..).
They play nicely with native components.



On Mon, Dec 14, 2020 at 1:17 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> Is InteractionDialog advised to be used in order to have a better
> threading on the user interface?
>
> I was said that the InteractionDialog is less heavy in terms of blocking
> the main UI thread.
> Is it so?
> Thanks in advance
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/b5fb0991-efde-45e5-b2e7-2080263a32aen%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/b5fb0991-efde-45e5-b2e7-2080263a32aen%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVKNk7TYy7VKQ2qg8SANskXtuG%2BDKHUMevr25u3yuDE8A%40mail.gmail.com.


Re: [codenameone-discussions] Re: CEF BrowserComponent blocked after showing new Form and going back

2020-12-07 Thread Steve Hannah
The CEF browser component follows a different codepath than the JavaFX
browser.  The issue you cited, I believe is specific to JavaFX.

I have just tested the CEF browser component in the simulator on both Mac
and Windows, and rotated several times.  I cannot reproduce any
"blocking".  Please post a test case with your issue, and include relevant
details about the operating system version, etc...

Steve

On Mon, Dec 7, 2020 at 5:56 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> This issue seems to be related to this one:
> https://github.com/codenameone/CodenameOne/issues/3300
> I think it is not useful to open another issue, being that you are very
> busy, and the due date of milestones keeps being delayed.
>
> However I would like to know at least if the compiled packages to test on
> real devices are exempt from this issue, so to be able to complete my
> project.
>
> Regards
>
> Il giorno lunedì 7 dicembre 2020 alle 04:32:38 UTC+1 Shai Almog ha scritto:
>
>> Can you file an issue on that with a test case?
>> CEF support is new and off by default so we need the bug reports to
>> improve the support.
>>
>> On Sunday, December 6, 2020 at 12:53:30 PM UTC+2 P5music wrote:
>>
>>> The  CEF  BrowserComponent is blocked as described in the title, the
>>> same way it happens after orientation change.
>>> I think the BC is of paramount importance in a cross-platform
>>> environment like CN and the simulator.
>>> Many developers could be using and testing that.
>>> Orientation change and form navigation are the basic cases to have to be
>>> fully working with such a component, I think.
>>>
>>> Thanks in advance.
>>>
>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/94d25876-e19d-49ae-b5e0-3a3348504726n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/94d25876-e19d-49ae-b5e0-3a3348504726n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVgzQ%2B8LYLECd9icjBc5GOU7b5cZiMh7ZZ8hQbhV-bbzw%40mail.gmail.com.


Re: [codenameone-discussions] Re: Customer satic lib Swift

2020-12-06 Thread Steve Hannah
Util.o)
>>>>>>   "Swift.Double.init(Swift.Float) -> Swift.Double", referenced from:
>>>>>>   (extension in SkyIdSDK):__C.UIImage.rotate(radians:
>>>>>> Swift.Float) -> __C.UIImage? in libSkyIdSDK.a(UIImageUtil.o)
>>>>>>   "protocol conformance descriptor for Swift.String.UnicodeScalarView
>>>>>> : Swift.Collection in Swift", referenced from:
>>>>>>   lazy protocol witness table accessor for type
>>>>>> Swift.String.UnicodeScalarView and conformance
>>>>>> Swift.String.UnicodeScalarView : Swift.Collection in Swift in
>>>>>> libSkyIdSDK.a(MRZField.o)
>>>>>>   "Swift.Character.unicodeScalars.getter :
>>>>>> Swift.String.UnicodeScalarView", referenced from:
>>>>>>   static SkyIdSDK.MRZField.isValueValid(_: Swift.String,
>>>>>> checkDigit: Swift.String) -> Swift.Bool in libSkyIdSDK.a(MRZField.o)
>>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "CodenameOne Discussions" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to codenameone-discu...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/codenameone-discussions/cb119b97-02d1-4cb9-a47a-0755b3330e09n%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/codenameone-discussions/cb119b97-02d1-4cb9-a47a-0755b3330e09n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>> You received this message because you are subscribed to the Google Groups
>> "CodenameOne Discussions" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to codenameone-discussions+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/codenameone-discussions/62cbf412-88d9-4d26-a1d7-509623048618n%40googlegroups.com
>> <https://groups.google.com/d/msgid/codenameone-discussions/62cbf412-88d9-4d26-a1d7-509623048618n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/CABLoU%3D9KgkBDgPYvaaTB2%2BZqHMGA%3DU88VO%3Dv1WkJmodJpCncuA%40mail.gmail.com
> <https://groups.google.com/d/msgid/codenameone-discussions/CABLoU%3D9KgkBDgPYvaaTB2%2BZqHMGA%3DU88VO%3Dv1WkJmodJpCncuA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVTOjqucq-JunkGiyt42RLnRHoC%2BEHhq8UUho0hK%3DqsPg%40mail.gmail.com.


Re: [codenameone-discussions] How to generate "Bridging-Header.h"

2020-12-02 Thread Steve Hannah
Continued:

And usng the @import directive in the .m file:

https://github.com/shannah/CN1WebRTC/blob/master/webrtc/native/ios/com_codename1_webrtc_compat_cordova_CordovaNativeImpl.m#L6

On Wed, Dec 2, 2020 at 11:56 AM Steve Hannah 
wrote:

> I recently went through this myself, but I don't remember the details on
> how I generated the bridging header.
>
> But for reference.  Here is the bridging header for my Swift Framework
>
> https://github.com/shannah/CN1WebRTC/blob/master/IosRtcPlugin/IosRtcPlugin/cordova-plugin-iosrtc-Bridging-Header.h
>
> This framework is used by a native interface, using the `@class` keyword
> in the .h file
>
>
> https://github.com/shannah/CN1WebRTC/blob/master/webrtc/native/ios/com_codename1_webrtc_compat_cordova_CordovaNativeImpl.h#L3
>
>
>
>
> On Wed, Dec 2, 2020 at 10:28 AM amine...@gmail.com 
> wrote:
>
>> Hi,
>> How do I generate a "Bridging-Header.h" file for importing Swift
>> in Objective-C Native Interface ???
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "CodenameOne Discussions" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to codenameone-discussions+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/codenameone-discussions/6b532df3-bc10-4e49-be78-cc8fd429e72bn%40googlegroups.com
>> <https://groups.google.com/d/msgid/codenameone-discussions/6b532df3-bc10-4e49-be78-cc8fd429e72bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Steve Hannah
> Software Developer
> Codename One
> http://www.codenameone.com
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWA0dSR8J%2BPt28u%2BMW7phzcW3Nm3xDM%2BkawZcFd2CvFwA%40mail.gmail.com.


Re: [codenameone-discussions] How to generate "Bridging-Header.h"

2020-12-02 Thread Steve Hannah
I recently went through this myself, but I don't remember the details on
how I generated the bridging header.

But for reference.  Here is the bridging header for my Swift Framework
https://github.com/shannah/CN1WebRTC/blob/master/IosRtcPlugin/IosRtcPlugin/cordova-plugin-iosrtc-Bridging-Header.h

This framework is used by a native interface, using the `@class` keyword in
the .h file

https://github.com/shannah/CN1WebRTC/blob/master/webrtc/native/ios/com_codename1_webrtc_compat_cordova_CordovaNativeImpl.h#L3




On Wed, Dec 2, 2020 at 10:28 AM amine...@gmail.com 
wrote:

> Hi,
> How do I generate a "Bridging-Header.h" file for importing Swift
> in Objective-C Native Interface ???
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/6b532df3-bc10-4e49-be78-cc8fd429e72bn%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/6b532df3-bc10-4e49-be78-cc8fd429e72bn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKW%3DCh04%3DvY-P5tOHgQStLakhr6w_FDe4%3DNgPS4G-T17Mg%40mail.gmail.com.


Re: [codenameone-discussions] Re: BrowserComponent not scrolling

2020-11-03 Thread Steve Hannah
>>>>>>>>>>> Il giorno martedì 27 ottobre 2020 alle 03:55:28 UTC+1 Shai
>>>>>>>>>>>>>>> Almog ha scritto:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> In that case it could be a CEF regression. Can you isolate
>>>>>>>>>>>>>>>> a runnable test case that reproduces the problem and file an 
>>>>>>>>>>>>>>>> issue?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Monday, October 26, 2020 at 1:10:53 PM UTC+2 P5music
>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> I cannot test on the FX version, I am testing the CEF one
>>>>>>>>>>>>>>>>> on the Simulator (no device test available too).
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Yes I see the vertical scrollbar of the BrowserComponent,
>>>>>>>>>>>>>>>>> and it stays also with
>>>>>>>>>>>>>>>>> setScrollVisible(false);
>>>>>>>>>>>>>>>>> But the BC does not scroll with that, and it does not
>>>>>>>>>>>>>>>>> scroll even using the mouse wheel, or dragging over with the 
>>>>>>>>>>>>>>>>> mouse.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Il giorno lunedì 26 ottobre 2020 alle 04:44:34 UTC+1 Shai
>>>>>>>>>>>>>>>>> Almog ha scritto:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Do you see a scroll bar on the browser component?
>>>>>>>>>>>>>>>>>> Did you try this on the device? Did you try it with the
>>>>>>>>>>>>>>>>>> FX version of the browser component?
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On Sunday, October 25, 2020 at 12:28:46 PM UTC+2 P5music
>>>>>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> So I removed all useless calls to  setScrollable kind of
>>>>>>>>>>>>>>>>>>> methods.
>>>>>>>>>>>>>>>>>>> It is called just on the mainForm and/or its content
>>>>>>>>>>>>>>>>>>> pane.
>>>>>>>>>>>>>>>>>>> mainForm.setScrollable(false);
>>>>>>>>>>>>>>>>>>> OR
>>>>>>>>>>>>>>>>>>> mainForm.getContentPane().setScrollableY(false);
>>>>>>>>>>>>>>>>>>> is needed to let not scroll the entire user interface.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> But the BC is not scrollable.
>>>>>>>>>>>>>>>>>>> If I set scrollableY=true for the left container it does
>>>>>>>>>>>>>>>>>>> not scroll either.
>>>>>>>>>>>>>>>>>>> One of the BC or the left container has to be scrollable
>>>>>>>>>>>>>>>>>>> to fulfill my needs.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> What further checks can be done?
>>>>>>>>>>>>>>>>>>> Thanks
>>>>>>>>>>>>>>>>>>> Il giorno domenica 25 ottobre 2020 alle 03:14:39 UTC+1
>>>>>>>>>>>>>>>>>>> Shai Almog ha scritto:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Don't change the scrollability of the browser component.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> That option is under zoom and it relates to the
>>>>>>>>>>>>>>>>>>>> scrolling of the simulator skin itself.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> You don't need to explicitly call setScrollable(false)
>>>>>>>>>>>>>>>>>>>> since that's the default. The only thing that's scrollable 
>>>>>>>>>>>>>>>>>>>> by default if
>>>>>>>>>>>>>>>>>>>> the content pane of the main form.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On Saturday, October 24, 2020 at 2:09:05 PM UTC+3
>>>>>>>>>>>>>>>>>>>> P5music wrote:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> The CEF BC is used.
>>>>>>>>>>>>>>>>>>>>> for the mainform: setScrollable(false)
>>>>>>>>>>>>>>>>>>>>> for the BC: setScrollableY(true)
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> There is no simulator menu entry "scrollable" to
>>>>>>>>>>>>>>>>>>>>> uncheck, and I do not understand why to uncheck it 
>>>>>>>>>>>>>>>>>>>>> anyway, and what it
>>>>>>>>>>>>>>>>>>>>> would refer to?
>>>>>>>>>>>>>>>>>>>>> Please can you explain?
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> I have nested containers and I set them all with
>>>>>>>>>>>>>>>>>>>>> setScrollableX(false) and setScrollableY(false).
>>>>>>>>>>>>>>>>>>>>> Also the result container of fab binding is set the
>>>>>>>>>>>>>>>>>>>>> same. (this result container is added to the form)
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> A thing has be noticed.
>>>>>>>>>>>>>>>>>>>>> The most deep nested level is a BorderLayout. It has
>>>>>>>>>>>>>>>>>>>>> in the north a vertically-short container, then in the 
>>>>>>>>>>>>>>>>>>>>> center it has the
>>>>>>>>>>>>>>>>>>>>> BrowserComponent.
>>>>>>>>>>>>>>>>>>>>> When attempting to scroll the BC, just sometimes I see
>>>>>>>>>>>>>>>>>>>>> a very tiny movement of the entire BC including the 
>>>>>>>>>>>>>>>>>>>>> vertical scrollbar, but
>>>>>>>>>>>>>>>>>>>>> not the other container in north position.
>>>>>>>>>>>>>>>>>>>>> This reminds me that something is scrolling that's
>>>>>>>>>>>>>>>>>>>>> surrounding the BC but I cannot understand what.
>>>>>>>>>>>>>>>>>>>>> Do you see anything about this?
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Il giorno sabato 24 ottobre 2020 alle 07:32:54 UTC+2
>>>>>>>>>>>>>>>>>>>>> Shai Almog ha scritto:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> How is it set to scrollable?
>>>>>>>>>>>>>>>>>>>>>> If you mean in the simulator menu try to uncheck
>>>>>>>>>>>>>>>>>>>>>> scrollable.
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> Are you using CEF or the FX based browser?
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> On Friday, October 23, 2020 at 5:41:50 PM UTC+3
>>>>>>>>>>>>>>>>>>>>>> P5music wrote:
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> My CodenameApp has a main form that splits the
>>>>>>>>>>>>>>>>>>>>>>> screen like a master detail layout in landscape mode. 
>>>>>>>>>>>>>>>>>>>>>>> It is set not
>>>>>>>>>>>>>>>>>>>>>>> scrollable.
>>>>>>>>>>>>>>>>>>>>>>> A table layout is used with some constraints to have
>>>>>>>>>>>>>>>>>>>>>>> this appearance.
>>>>>>>>>>>>>>>>>>>>>>> I am testint the app in the simulator.
>>>>>>>>>>>>>>>>>>>>>>> In the left part a BrowserComponent is inside a
>>>>>>>>>>>>>>>>>>>>>>> container and displays some HTML code.
>>>>>>>>>>>>>>>>>>>>>>> I see that the vertical bar appears on the BC
>>>>>>>>>>>>>>>>>>>>>>> because the HTML overflows vertically, but cannot be 
>>>>>>>>>>>>>>>>>>>>>>> moved, it is blocked.
>>>>>>>>>>>>>>>>>>>>>>> The BC is not resposive to the mouse wheel too. It
>>>>>>>>>>>>>>>>>>>>>>> is set scrollable.
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> The container is bound to the FloatingActionButton
>>>>>>>>>>>>>>>>>>>>>>> that is floating on the container itself and the BC.
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> Do you know any issue that prevents the BC from
>>>>>>>>>>>>>>>>>>>>>>> being scrolled? Is it something related to the Version 
>>>>>>>>>>>>>>>>>>>>>>> 7.0 milestone issues?
>>>>>>>>>>>>>>>>>>>>>>> Thanks in advance
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/d61c5dba-dcb1-439d-8d6c-a147f4ebd300n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/d61c5dba-dcb1-439d-8d6c-a147f4ebd300n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXiB5s2shB%3DXm7S_R9JsyrnHgZiL_4drKseGfQMYpsFGg%40mail.gmail.com.


Re: [codenameone-discussions] executeAndWait Javascript function and injected Javascript give error

2020-10-22 Thread Steve Hannah
window.location.href=url}} var result = {value:null, type:null,
> errorMessage:null, errorCode:0, callbackId:1};var callback = {  onSucess:
> function(val) { this.onSuccess(val);},   onSuccess: function(val) {
> result.value = val; result.type = typeof(val); if (val !== null && typeof
> val === 'object') {result.value = val.toString();} doCallback(result);},
>  onError: function(message, code) { if (message instanceof Error)
> {result.errorMessage = message.message; result.errorCode = 0;} else
> {result.errorMessage = message; result.errorCode = code;}
> doCallback(result);}};try { var
> iframe=document.createElement("IFRAME");iframe.setAttribute("srcdoc"," html> style="vertical-align:middle;font-size:2em;" > style="vertical-align:middle;height:50px;" src="
> https://support.apple.com/library/content/dam/edam/applecare/images/en_US/iOS/ios10-weather-app-icon.png";
> />Meteo");} catch (e) {try {callback.onError(e.message,
> 0);} catch (e2) {callback.onError('Unknown error', 0);}}})(); (1)
>
>
> Il giorno giovedì 22 ottobre 2020 alle 17:52:47 UTC+2 Steve Hannah ha
> scritto:
>
>> Create a self-contained test cast and file an issue in the issue tracker.
>>
>> On Thu, Oct 22, 2020 at 8:34 AM 'P5music' via CodenameOne Discussions <
>> codenameone...@googlegroups.com> wrote:
>>
>>> I tried your suggestion but it does not work, as expected if you
>>> consider that what is going to be executed is something that has quotes
>>> inside quotes, like
>>> setAttribute("srcdoc",">> >");
>>>
>>> that line is injected so it has to be
>>> "setAttribute(\"srcdoc\",\">> >\");"
>>> This is what goes inside the function,
>>>
>>> but in the log you can see for example:
>>>
>>> iframe.setAttribute("srcdoc",">> style="vertical-align:middle;font-size:2em;" >.
>>> when deep quotes are not escaped how you suggested.
>>>
>>> While just applying the escaping of double quotes I get in the log
>>>
>>> var%20div%3Ddocument.createelement%28%27div%27%29%3Bdiv.addeventlistener%28%27mouse
>>>
>>> the error seems to be anticipated because that string continues and
>>> reaches to (the same code position even it belongs to a different IFRAME):
>>>
>>> iframe.setattribute%28%22srcdoc%22%2C%22%3C%21doctype%20html%3E%3Chtml%3E%3Chead%3E%3Clink%20href%3D%5C%22https://
>>> that is clearly different
>>> and this change happens just if I escape instead of not escaping as you
>>> suggested.
>>>
>>>
>>> Il giorno giovedì 22 ottobre 2020 alle 16:31:11 UTC+2 Steve Hannah ha
>>> scritto:
>>>
>>>> Don't escape the quotes.
>>>>
>>>> On Thu, Oct 22, 2020 at 7:29 AM 'P5music' via CodenameOne Discussions <
>>>> codenameone...@googlegroups.com> wrote:
>>>>
>>>>> I am testing the two variants.
>>>>>
>>>>> If I use the original variant executeAndWait I get what is the
>>>>> original error of this thread.
>>>>>
>>>>> If I use the execute variant I get the new error and apparent double
>>>>> encoding.
>>>>>
>>>>> I am not applying any encoding. I just escape the quotes (in both
>>>>> cases):
>>>>> String htmlText=originalHtml.replace("\"","\\\"");
>>>>> It has be done because I have to inject the HTML into the srcdoc
>>>>> attribute of the IFRAMEs.
>>>>>
>>>>>
>>>>> Il giorno giovedì 22 ottobre 2020 alle 16:20:50 UTC+2 Steve Hannah ha
>>>>> scritto:
>>>>>
>>>>>> Did you already pass that string through your own encoding/escaping?
>>>>>> If so, you may have some double-encoding going on.
>>>>>>
>>>>>> On Thu, Oct 22, 2020 at 7:08 AM 'P5music' via CodenameOne Discussions
>>>>>>  wrote:
>>>>>>
>>>>>>> This variant seems to be encoding all text.
>>>>>>> [1022/154808.805601:INFO:CONSOLE(1)] "Uncaught SyntaxError: Invalid
>>>>>>> or unexpected token", source:
>>>>>>> var%20div%3Ddocument.createelement%28%27div%27%29%3Bdiv.addeventlistener%28%27mouse.
>>>>>>>
>>>>>>> This just a sn

Re: [codenameone-discussions] executeAndWait Javascript function and injected Javascript give error

2020-10-22 Thread Steve Hannah
Create a self-contained test cast and file an issue in the issue tracker.

On Thu, Oct 22, 2020 at 8:34 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> I tried your suggestion but it does not work, as expected if you consider
> that what is going to be executed is something that has quotes inside
> quotes, like
> setAttribute("srcdoc"," >");
>
> that line is injected so it has to be
> "setAttribute(\"srcdoc\",\" >\");"
> This is what goes inside the function,
>
> but in the log you can see for example:
>
> iframe.setAttribute("srcdoc"," style="vertical-align:middle;font-size:2em;" >.
> when deep quotes are not escaped how you suggested.
>
> While just applying the escaping of double quotes I get in the log
>
> var%20div%3Ddocument.createelement%28%27div%27%29%3Bdiv.addeventlistener%28%27mouse
>
> the error seems to be anticipated because that string continues and
> reaches to (the same code position even it belongs to a different IFRAME):
>
> iframe.setattribute%28%22srcdoc%22%2C%22%3C%21doctype%20html%3E%3Chtml%3E%3Chead%3E%3Clink%20href%3D%5C%22https://
> that is clearly different
> and this change happens just if I escape instead of not escaping as you
> suggested.
>
>
> Il giorno giovedì 22 ottobre 2020 alle 16:31:11 UTC+2 Steve Hannah ha
> scritto:
>
>> Don't escape the quotes.
>>
>> On Thu, Oct 22, 2020 at 7:29 AM 'P5music' via CodenameOne Discussions <
>> codenameone...@googlegroups.com> wrote:
>>
>>> I am testing the two variants.
>>>
>>> If I use the original variant executeAndWait I get what is the original
>>> error of this thread.
>>>
>>> If I use the execute variant I get the new error and apparent double
>>> encoding.
>>>
>>> I am not applying any encoding. I just escape the quotes (in both cases):
>>> String htmlText=originalHtml.replace("\"","\\\"");
>>> It has be done because I have to inject the HTML into the srcdoc
>>> attribute of the IFRAMEs.
>>>
>>>
>>> Il giorno giovedì 22 ottobre 2020 alle 16:20:50 UTC+2 Steve Hannah ha
>>> scritto:
>>>
>>>> Did you already pass that string through your own encoding/escaping?
>>>> If so, you may have some double-encoding going on.
>>>>
>>>> On Thu, Oct 22, 2020 at 7:08 AM 'P5music' via CodenameOne Discussions <
>>>> codenameone...@googlegroups.com> wrote:
>>>>
>>>>> This variant seems to be encoding all text.
>>>>> [1022/154808.805601:INFO:CONSOLE(1)] "Uncaught SyntaxError: Invalid or
>>>>> unexpected token", source:
>>>>> var%20div%3Ddocument.createelement%28%27div%27%29%3Bdiv.addeventlistener%28%27mouse.
>>>>>
>>>>> This just a snippet of what is being done. I think that the HTML was
>>>>> encoded, including the surrounding Javascript (I see it in Chrome debug
>>>>> console).
>>>>> What's wrong?
>>>>> Il giorno giovedì 22 ottobre 2020 alle 15:18:52 UTC+2 Steve Hannah ha
>>>>> scritto:
>>>>>
>>>>>> There is an executeAndWait() variant that takes parameters.
>>>>>>
>>>>>> https://www.codenameone.com/javadoc/com/codename1/ui/BrowserComponent.html#executeAndWait-java.lang.String-java.lang.Object...-
>>>>>>
>>>>>> There are many variants listed in the javadocs.  One for every
>>>>>> occasion.
>>>>>>
>>>>>> On Thu, Oct 22, 2020 at 6:10 AM 'P5music' via CodenameOne Discussions
>>>>>>  wrote:
>>>>>>
>>>>>>> I need the "wait" part too, is it possible to properly encode the
>>>>>>> raw text with a method?
>>>>>>> So I can keep using the executeAndWait variant?
>>>>>>>
>>>>>>> Il giorno giovedì 22 ottobre 2020 alle 14:50:54 UTC+2 Steve Hannah
>>>>>>> ha scritto:
>>>>>>>
>>>>>>>> I see.  It isn't the DOCTYPE it has complaining about. It is that
>>>>>>>> you are placing raw text.  You can't have new lines.
>>>>>>>>
>>>>>>>> If you want to inject arbitrary strings you should use the
>>>>>>>> execute(String js, Object[] params) vari

Re: [codenameone-discussions] executeAndWait Javascript function and injected Javascript give error

2020-10-22 Thread Steve Hannah
Don't escape the quotes.

On Thu, Oct 22, 2020 at 7:29 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> I am testing the two variants.
>
> If I use the original variant executeAndWait I get what is the original
> error of this thread.
>
> If I use the execute variant I get the new error and apparent double
> encoding.
>
> I am not applying any encoding. I just escape the quotes (in both cases):
> String htmlText=originalHtml.replace("\"","\\\"");
> It has be done because I have to inject the HTML into the srcdoc attribute
> of the IFRAMEs.
>
>
> Il giorno giovedì 22 ottobre 2020 alle 16:20:50 UTC+2 Steve Hannah ha
> scritto:
>
>> Did you already pass that string through your own encoding/escaping?  If
>> so, you may have some double-encoding going on.
>>
>> On Thu, Oct 22, 2020 at 7:08 AM 'P5music' via CodenameOne Discussions <
>> codenameone...@googlegroups.com> wrote:
>>
>>> This variant seems to be encoding all text.
>>> [1022/154808.805601:INFO:CONSOLE(1)] "Uncaught SyntaxError: Invalid or
>>> unexpected token", source:
>>> var%20div%3Ddocument.createelement%28%27div%27%29%3Bdiv.addeventlistener%28%27mouse.
>>>
>>> This just a snippet of what is being done. I think that the HTML was
>>> encoded, including the surrounding Javascript (I see it in Chrome debug
>>> console).
>>> What's wrong?
>>> Il giorno giovedì 22 ottobre 2020 alle 15:18:52 UTC+2 Steve Hannah ha
>>> scritto:
>>>
>>>> There is an executeAndWait() variant that takes parameters.
>>>>
>>>> https://www.codenameone.com/javadoc/com/codename1/ui/BrowserComponent.html#executeAndWait-java.lang.String-java.lang.Object...-
>>>>
>>>> There are many variants listed in the javadocs.  One for every occasion.
>>>>
>>>> On Thu, Oct 22, 2020 at 6:10 AM 'P5music' via CodenameOne Discussions <
>>>> codenameone...@googlegroups.com> wrote:
>>>>
>>>>> I need the "wait" part too, is it possible to properly encode the raw
>>>>> text with a method?
>>>>> So I can keep using the executeAndWait variant?
>>>>>
>>>>> Il giorno giovedì 22 ottobre 2020 alle 14:50:54 UTC+2 Steve Hannah ha
>>>>> scritto:
>>>>>
>>>>>> I see.  It isn't the DOCTYPE it has complaining about. It is that you
>>>>>> are placing raw text.  You can't have new lines.
>>>>>>
>>>>>> If you want to inject arbitrary strings you should use the
>>>>>> execute(String js, Object[] params) variant:
>>>>>>
>>>>>> https://www.codenameone.com/javadoc/com/codename1/ui/BrowserComponent.html#execute-java.lang.String-java.lang.Object:A-
>>>>>>
>>>>>> E.g.  myBrowserComponent.execute("...iframe.setAttribute('srcdoc',
>>>>>> ${0});...", new Object[]{htmlText});
>>>>>>
>>>>>> That will properly encode the htmlText (e.g. escaping new lines and
>>>>>> other problematic characters).
>>>>>>
>>>>>> On Thu, Oct 22, 2020 at 5:36 AM 'P5music' via CodenameOne Discussions
>>>>>>  wrote:
>>>>>>
>>>>>>> Hello,
>>>>>>> The injected HTML is not under my control, it is a string. If it
>>>>>>> doesn't like '>>>>>> other things.
>>>>>>> In the provided code above it seems that it is written that way but
>>>>>>> it is a string
>>>>>>> created this way:
>>>>>>> " ... iframe.setAttribute(\"srcdoc\",\""+htmlText+"\");"
>>>>>>> Also, as you can see double-quotes " have been replaced by single
>>>>>>> quotes ' by the executeAndWait method.
>>>>>>>
>>>>>>> Il giorno giovedì 22 ottobre 2020 alle 13:46:25 UTC+2 Steve Hannah
>>>>>>> ha scritto:
>>>>>>>
>>>>>>>> Perhaps it doesn't like the doctype tag.  Try splitting it up.
>>>>>>>> E.g.
>>>>>>>>
>>>>>>>> iframe.setAttribute('srcdoc', '<'+'!DOCTYPE html>...');
>>>>>>>>
>>>>>>

Re: [codenameone-discussions] executeAndWait Javascript function and injected Javascript give error

2020-10-22 Thread Steve Hannah
Did you already pass that string through your own encoding/escaping?  If
so, you may have some double-encoding going on.

On Thu, Oct 22, 2020 at 7:08 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> This variant seems to be encoding all text.
> [1022/154808.805601:INFO:CONSOLE(1)] "Uncaught SyntaxError: Invalid or
> unexpected token", source:
> var%20div%3Ddocument.createelement%28%27div%27%29%3Bdiv.addeventlistener%28%27mouse.
>
> This just a snippet of what is being done. I think that the HTML was
> encoded, including the surrounding Javascript (I see it in Chrome debug
> console).
> What's wrong?
> Il giorno giovedì 22 ottobre 2020 alle 15:18:52 UTC+2 Steve Hannah ha
> scritto:
>
>> There is an executeAndWait() variant that takes parameters.
>>
>> https://www.codenameone.com/javadoc/com/codename1/ui/BrowserComponent.html#executeAndWait-java.lang.String-java.lang.Object...-
>>
>> There are many variants listed in the javadocs.  One for every occasion.
>>
>> On Thu, Oct 22, 2020 at 6:10 AM 'P5music' via CodenameOne Discussions <
>> codenameone...@googlegroups.com> wrote:
>>
>>> I need the "wait" part too, is it possible to properly encode the raw
>>> text with a method?
>>> So I can keep using the executeAndWait variant?
>>>
>>> Il giorno giovedì 22 ottobre 2020 alle 14:50:54 UTC+2 Steve Hannah ha
>>> scritto:
>>>
>>>> I see.  It isn't the DOCTYPE it has complaining about. It is that you
>>>> are placing raw text.  You can't have new lines.
>>>>
>>>> If you want to inject arbitrary strings you should use the
>>>> execute(String js, Object[] params) variant:
>>>>
>>>> https://www.codenameone.com/javadoc/com/codename1/ui/BrowserComponent.html#execute-java.lang.String-java.lang.Object:A-
>>>>
>>>> E.g.  myBrowserComponent.execute("...iframe.setAttribute('srcdoc',
>>>> ${0});...", new Object[]{htmlText});
>>>>
>>>> That will properly encode the htmlText (e.g. escaping new lines and
>>>> other problematic characters).
>>>>
>>>> On Thu, Oct 22, 2020 at 5:36 AM 'P5music' via CodenameOne Discussions <
>>>> codenameone...@googlegroups.com> wrote:
>>>>
>>>>> Hello,
>>>>> The injected HTML is not under my control, it is a string. If it
>>>>> doesn't like '>>>> other things.
>>>>> In the provided code above it seems that it is written that way but it
>>>>> is a string
>>>>> created this way:
>>>>> " ... iframe.setAttribute(\"srcdoc\",\""+htmlText+"\");"
>>>>> Also, as you can see double-quotes " have been replaced by single
>>>>> quotes ' by the executeAndWait method.
>>>>>
>>>>> Il giorno giovedì 22 ottobre 2020 alle 13:46:25 UTC+2 Steve Hannah ha
>>>>> scritto:
>>>>>
>>>>>> Perhaps it doesn't like the doctype tag.  Try splitting it up.  E.g.
>>>>>>
>>>>>> iframe.setAttribute('srcdoc', '<'+'!DOCTYPE html>...');
>>>>>>
>>>>>> On Thu, Oct 22, 2020 at 4:26 AM 'P5music' via CodenameOne Discussions
>>>>>>  wrote:
>>>>>>
>>>>>>> In my CodenameOne app some Javascript code is injected to create a
>>>>>>> DOM, made of IFRAMES with HTML code inside.
>>>>>>> The HTML code is correct but I am debugging in Chrome and I see that
>>>>>>> when the HTML code starts an error is detected (the error is also in the
>>>>>>> IntelliJ IDEA console):
>>>>>>>
>>>>>>> The following text is the function that is made from the
>>>>>>> executeAndWait method:
>>>>>>>
>>>>>>> (function(){var BASE_URL='
>>>>>>> https://www.codenameone.com/!cn1return/';function doCallback(val)
>>>>>>> {   var url = BASE_URL + encodeURIComponent(JSON.stringify(val));  if
>>>>>>> (window.cefQuery) { window.cefQuery({request:'shouldNavigate:'+url,
>>>>>>> onSuccess: function(response){}, onFailure:function(error_code,
>>>>>>> error_message) { console.log(error_message)}});}  else if
>>>

Re: [codenameone-discussions] executeAndWait Javascript function and injected Javascript give error

2020-10-22 Thread Steve Hannah
There is an executeAndWait() variant that takes parameters.
https://www.codenameone.com/javadoc/com/codename1/ui/BrowserComponent.html#executeAndWait-java.lang.String-java.lang.Object...-

There are many variants listed in the javadocs.  One for every occasion.

On Thu, Oct 22, 2020 at 6:10 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> I need the "wait" part too, is it possible to properly encode the raw text
> with a method?
> So I can keep using the executeAndWait variant?
>
> Il giorno giovedì 22 ottobre 2020 alle 14:50:54 UTC+2 Steve Hannah ha
> scritto:
>
>> I see.  It isn't the DOCTYPE it has complaining about. It is that you are
>> placing raw text.  You can't have new lines.
>>
>> If you want to inject arbitrary strings you should use the execute(String
>> js, Object[] params) variant:
>>
>> https://www.codenameone.com/javadoc/com/codename1/ui/BrowserComponent.html#execute-java.lang.String-java.lang.Object:A-
>>
>> E.g.  myBrowserComponent.execute("...iframe.setAttribute('srcdoc',
>> ${0});...", new Object[]{htmlText});
>>
>> That will properly encode the htmlText (e.g. escaping new lines and other
>> problematic characters).
>>
>> On Thu, Oct 22, 2020 at 5:36 AM 'P5music' via CodenameOne Discussions <
>> codenameone...@googlegroups.com> wrote:
>>
>>> Hello,
>>> The injected HTML is not under my control, it is a string. If it doesn't
>>> like '>> things.
>>> In the provided code above it seems that it is written that way but it
>>> is a string
>>> created this way:
>>> " ... iframe.setAttribute(\"srcdoc\",\""+htmlText+"\");"
>>> Also, as you can see double-quotes " have been replaced by single quotes
>>> ' by the executeAndWait method.
>>>
>>> Il giorno giovedì 22 ottobre 2020 alle 13:46:25 UTC+2 Steve Hannah ha
>>> scritto:
>>>
>>>> Perhaps it doesn't like the doctype tag.  Try splitting it up.  E.g.
>>>>
>>>> iframe.setAttribute('srcdoc', '<'+'!DOCTYPE html>...');
>>>>
>>>> On Thu, Oct 22, 2020 at 4:26 AM 'P5music' via CodenameOne Discussions <
>>>> codenameone...@googlegroups.com> wrote:
>>>>
>>>>> In my CodenameOne app some Javascript code is injected to create a
>>>>> DOM, made of IFRAMES with HTML code inside.
>>>>> The HTML code is correct but I am debugging in Chrome and I see that
>>>>> when the HTML code starts an error is detected (the error is also in the
>>>>> IntelliJ IDEA console):
>>>>>
>>>>> The following text is the function that is made from the
>>>>> executeAndWait method:
>>>>>
>>>>> (function(){var BASE_URL='
>>>>> https://www.codenameone.com/!cn1return/';function doCallback(val) {
>>>>>  var url = BASE_URL + encodeURIComponent(JSON.stringify(val));  if
>>>>> (window.cefQuery) { window.cefQuery({request:'shouldNavigate:'+url,
>>>>> onSuccess: function(response){}, onFailure:function(error_code,
>>>>> error_message) { console.log(error_message)}});}  else if
>>>>> (window.cn1application && window.cn1application.shouldNavigate) {
>>>>> window.cn1application.shouldNavigate(url) } else if (true)
>>>>> {window._cn1ready = window._cn1ready || [];
>>>>> window._cn1ready.push(function(){window.cn1application.shouldNavigate(url)});}
>>>>> else {window.location.href=url}} var result = {value:null, type:null,
>>>>> errorMessage:null, errorCode:0, callbackId:3};var callback = {  onSucess:
>>>>> function(val) { this.onSuccess(val);},   onSuccess: function(val) {
>>>>> result.value = val; result.type = typeof(val); if (val !== null && typeof
>>>>> val === 'object') {result.value = val.toString();} doCallback(result);},
>>>>>  onError: function(message, code) { if (message instanceof Error)
>>>>> {result.errorMessage = message.message; result.errorCode = 0;} else
>>>>> {result.errorMessage = message; result.errorCode = code;}
>>>>> doCallback(result);}};try { var
>>>>> div=document.createElement('DIV');div.addEventListener('mousedown',
>>>>> function (event)
>>>>> {callMouseDown(div.getAttribute("id"

Re: [codenameone-discussions] executeAndWait Javascript function and injected Javascript give error

2020-10-22 Thread Steve Hannah
I see.  It isn't the DOCTYPE it has complaining about. It is that you are
placing raw text.  You can't have new lines.

If you want to inject arbitrary strings you should use the execute(String
js, Object[] params) variant:
https://www.codenameone.com/javadoc/com/codename1/ui/BrowserComponent.html#execute-java.lang.String-java.lang.Object:A-

E.g.  myBrowserComponent.execute("...iframe.setAttribute('srcdoc',
${0});...", new Object[]{htmlText});

That will properly encode the htmlText (e.g. escaping new lines and other
problematic characters).

On Thu, Oct 22, 2020 at 5:36 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> Hello,
> The injected HTML is not under my control, it is a string. If it doesn't
> like ' things.
> In the provided code above it seems that it is written that way but it is
> a string
> created this way:
> " ... iframe.setAttribute(\"srcdoc\",\""+htmlText+"\");"
> Also, as you can see double-quotes " have been replaced by single quotes '
> by the executeAndWait method.
>
> Il giorno giovedì 22 ottobre 2020 alle 13:46:25 UTC+2 Steve Hannah ha
> scritto:
>
>> Perhaps it doesn't like the doctype tag.  Try splitting it up.  E.g.
>>
>> iframe.setAttribute('srcdoc', '<'+'!DOCTYPE html>...');
>>
>> On Thu, Oct 22, 2020 at 4:26 AM 'P5music' via CodenameOne Discussions <
>> codenameone...@googlegroups.com> wrote:
>>
>>> In my CodenameOne app some Javascript code is injected to create a DOM,
>>> made of IFRAMES with HTML code inside.
>>> The HTML code is correct but I am debugging in Chrome and I see that
>>> when the HTML code starts an error is detected (the error is also in the
>>> IntelliJ IDEA console):
>>>
>>> The following text is the function that is made from the executeAndWait
>>> method:
>>>
>>> (function(){var BASE_URL='
>>> https://www.codenameone.com/!cn1return/';function doCallback(val) {
>>>  var url = BASE_URL + encodeURIComponent(JSON.stringify(val));  if
>>> (window.cefQuery) { window.cefQuery({request:'shouldNavigate:'+url,
>>> onSuccess: function(response){}, onFailure:function(error_code,
>>> error_message) { console.log(error_message)}});}  else if
>>> (window.cn1application && window.cn1application.shouldNavigate) {
>>> window.cn1application.shouldNavigate(url) } else if (true)
>>> {window._cn1ready = window._cn1ready || [];
>>> window._cn1ready.push(function(){window.cn1application.shouldNavigate(url)});}
>>> else {window.location.href=url}} var result = {value:null, type:null,
>>> errorMessage:null, errorCode:0, callbackId:3};var callback = {  onSucess:
>>> function(val) { this.onSuccess(val);},   onSuccess: function(val) {
>>> result.value = val; result.type = typeof(val); if (val !== null && typeof
>>> val === 'object') {result.value = val.toString();} doCallback(result);},
>>>  onError: function(message, code) { if (message instanceof Error)
>>> {result.errorMessage = message.message; result.errorCode = 0;} else
>>> {result.errorMessage = message; result.errorCode = code;}
>>> doCallback(result);}};try { var
>>> div=document.createElement('DIV');div.addEventListener('mousedown',
>>> function (event)
>>> {callMouseDown(div.getAttribute("id"));});div.addEventListener('mouseup',
>>> function (event) {callMouseUp(div.getAttribute("id"));});var
>>> iframe=document.createElement("IFRAME");iframe.style.zIndex="0";iframe.style.pointerEvents="none";div.style.position="relative";
>>> div.id="0";iframe.setAttribute("scrolling","no");iframe.setAttribute("frameborder","no");iframe.setAttribute("noresize","noresize");iframe.setAttribute("height","100");
>>> iframe.innerText="FALLBACK";iframe.setAttribute("srcdoc","
>>>
>>> I did not paste all the function body. I stopped when the first HTML
>>> code begins for the first IFRAME and the error is there.
>>> As you can see in the attached image the red error starts at the comma
>>> (Uncaught SyntaxError: Invalid or unexpected token).
>>>
>>> (The HTML code is a text with other quotes inside as it is in normal
>>> HTML but it is correctly escaped)
>>>
>>> Can you help me? Do you see something? Could this 

Re: [codenameone-discussions] executeAndWait Javascript function and injected Javascript give error

2020-10-22 Thread Steve Hannah
Perhaps it doesn't like the doctype tag.  Try splitting it up.  E.g.

iframe.setAttribute('srcdoc', '<'+'!DOCTYPE html>...');

On Thu, Oct 22, 2020 at 4:26 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> In my CodenameOne app some Javascript code is injected to create a DOM,
> made of IFRAMES with HTML code inside.
> The HTML code is correct but I am debugging in Chrome and I see that when
> the HTML code starts an error is detected (the error is also in the
> IntelliJ IDEA console):
>
> The following text is the function that is made from the executeAndWait
> method:
>
> (function(){var BASE_URL='
> https://www.codenameone.com/!cn1return/';function doCallback(val) {   var
> url = BASE_URL + encodeURIComponent(JSON.stringify(val));  if
> (window.cefQuery) { window.cefQuery({request:'shouldNavigate:'+url,
> onSuccess: function(response){}, onFailure:function(error_code,
> error_message) { console.log(error_message)}});}  else if
> (window.cn1application && window.cn1application.shouldNavigate) {
> window.cn1application.shouldNavigate(url) } else if (true)
> {window._cn1ready = window._cn1ready || [];
> window._cn1ready.push(function(){window.cn1application.shouldNavigate(url)});}
> else {window.location.href=url}} var result = {value:null, type:null,
> errorMessage:null, errorCode:0, callbackId:3};var callback = {  onSucess:
> function(val) { this.onSuccess(val);},   onSuccess: function(val) {
> result.value = val; result.type = typeof(val); if (val !== null && typeof
> val === 'object') {result.value = val.toString();} doCallback(result);},
>  onError: function(message, code) { if (message instanceof Error)
> {result.errorMessage = message.message; result.errorCode = 0;} else
> {result.errorMessage = message; result.errorCode = code;}
> doCallback(result);}};try { var
> div=document.createElement('DIV');div.addEventListener('mousedown',
> function (event)
> {callMouseDown(div.getAttribute("id"));});div.addEventListener('mouseup',
> function (event) {callMouseUp(div.getAttribute("id"));});var
> iframe=document.createElement("IFRAME");iframe.style.zIndex="0";iframe.style.pointerEvents="none";div.style.position="relative";
> div.id="0";iframe.setAttribute("scrolling","no");iframe.setAttribute("frameborder","no");iframe.setAttribute("noresize","noresize");iframe.setAttribute("height","100");
> iframe.innerText="FALLBACK";iframe.setAttribute("srcdoc","
>
> I did not paste all the function body. I stopped when the first HTML code
> begins for the first IFRAME and the error is there.
> As you can see in the attached image the red error starts at the comma
> (Uncaught SyntaxError: Invalid or unexpected token).
>
> (The HTML code is a text with other quotes inside as it is in normal HTML
> but it is correctly escaped)
>
> Can you help me? Do you see something? Could this be caused by the calling
> function?
> Thanks in advance
> Regards
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/42678b68-78f9-40fa-adb1-7f4740b9796fn%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/42678b68-78f9-40fa-adb1-7f4740b9796fn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVQP0-42x2PuZ2ve9e3h7cymT-Yfefj7rEEHs8jUmupnA%40mail.gmail.com.


Re: [codenameone-discussions] Error: unexpected '}' when injecting Javascript in BrowserComponent

2020-10-21 Thread Steve Hannah
Most likely the relevant code - the code that has a syntax error - is the
part that you redacted with "/*My Javascript code here*/"

On Wed, Oct 21, 2020 at 3:16 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> IntelliJ IDEA 2020.2.3 (Community Edition)
> Build #IC-202.7660.26, built on October 6, 2020
> Runtime version: 11.0.8+10-b944.34 amd64
> VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
> Linux 5.4.0-48-generic
> GC: ParNew, ConcurrentMarkSweep
> Memory: 949M
> Cores: 4
> Non-Bundled Plugins: com.kaylerrenslow.plugin.armaplugin.id,
> com.codename1.plugin.intellij
> Current Desktop: ubuntu:GNOME
>
> I am using the executeAndWait instruction (but there are other similar
> instructions) on a BrowserComponent (subclass of).
> I get the error below when trying to inject Javascript. It complains about
> unexpected '}' char.
> In fact in that code there are 21 '{' hars and 22 '}' chars.
>
>  %28function%28%29%7Bvar%20base%5Furl%3D%27
> https://www.codenameone.com/!cn1return/';function doCallback(val) {   var
> url = BASE_URL + encodeURIComponent(JSON.stringify(val));  if
> (window.cefQuery) { window.cefQuery({request:'shouldNavigate:'+url,
> onSuccess: function(response){}, onFailure:function(error_code,
> error_message) { console.log(error_message)}});}  else if
> (window.cn1application && window.cn1application.shouldNavigate) {
> window.cn1application.shouldNavigate(url) } else if (true)
> {window._cn1ready = window._cn1ready || [];
> window._cn1ready.push(function(){window.cn1application.shouldNavigate(url)});}
> else {window.location.href=url}} var result = {value:null, type:null,
> errorMessage:null, errorCode:0, callbackId:1};var callback = {  onSucess:
> function(val) { this.onSuccess(val);},   onSuccess: function(val) {
> result.value = val; result.type = typeof(val); if (val !== null && typeof
> val === 'object') {result.value = val.toString();} doCallback(result);},
>  onError: function(message, code) { if (message instanceof Error)
> {result.errorMessage = message.message; result.errorCode = 0;} else
> {result.errorMessage = message; result.errorCode = code;}
> doCallback(result);}};try { /* My Javascript code here*/ } catch (e) {try
> {callback.onError(e.message, 0);} catch (e2) {callback.onError('Unknown
> error', 0);}}})(); (1)
>
> Regards
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/42b10660-5eb9-4161-b411-fa99d18c7c70n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/42b10660-5eb9-4161-b411-fa99d18c7c70n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVWZbZK%2BDOVJ4AtwMjefr_SjdJR0un35zOUWdrpHNkKug%40mail.gmail.com.


Re: [codenameone-discussions] https://cloud.codenameone.com/buildapp/index.html hangs on Ipad IOS 13.3

2020-10-14 Thread Steve Hannah
I can't seem to reproduce. Login working fine for me on Mac Safari, iPhone
X 13.4.1, and on iPad 2.  Are there any errors reported in the javascript
error log?

On Wed, Oct 14, 2020 at 9:39 AM Mark Bolduc <
shop.service.assist...@gmail.com> wrote:

> If you are experiencing an issue please mention the full platform your
> issue applies to:
> IDE: NetBeans/Eclipse/IDEA Netbeans 12.2
> Desktop OS Windows 10 Pro
> Simulator latest
> Device IPAD IOS 13.3
>
> Accessing https://cloud.codenameone.com/buildapp/index.html  hangs using
> Safari
> See attached pic "Codename One Build_loginFailure_Ios_Safati.png"
>
> Accessing https://cloud.codenameone.com/buildapp/index.html  hangs using
> MsEdge
>
> Accessing https://cloud.codenameone.com/buildapp/index.html  works as
> expected using Google Chrome
>
> Regards
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/a0606853-0fa3-4a05-93c9-60af20dcbfb4o%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/a0606853-0fa3-4a05-93c9-60af20dcbfb4o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKW03Lh0_pt8oJJ-QMrAJn0mzitfWrdyLGTgLvkq2TwGew%40mail.gmail.com.


Re: [codenameone-discussions] Is "AppArg" property of Display.getInstance() also useful when the app is already launched?

2020-09-22 Thread Steve Hannah
Yes.  If the app is already started and it receives a call to open it with
an argument, the app's start() method will be run again, and this time the
AppArg will contain the new value.

On Tue, Sep 22, 2020 at 2:39 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> I read in the documentation that it is possible to let the user open the
> CodenameOne app by means of selecting an associated file type.
> The instruction (let aside all settings necessary) is something like
> String arg=Display.getInstance().getProperty("AppArg",null);
> From the documentation I see that this is at startup, that is, the app
> gets launched with that if the user wants the file. Value is null when the
> app is started by tapping on its icon, if I am not wrong.
>
> But what if the app is already running, in both case it's in foreground or
> in background?
>
> Thanks in advance
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/bc969123-5366-4785-9eca-44ed804d8e19n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/bc969123-5366-4785-9eca-44ed804d8e19n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXRM6eGAR%3DxXv4hUEQsEKsd9A4YhovQBvSRVFZh1QPTUg%40mail.gmail.com.


Re: [codenameone-discussions] Exposing Swift methods to Generated Native Interface with @objc or @objcMembers annotations

2020-09-21 Thread Steve Hannah
The native interface should be Objective-C like usual.  The Java talks only
to this Objective-C layer.  Then to access your Swift framework, you use
the usual rules for calling Swift from Objective-C.

You wouldn't put any swift files directly in the native/ios directory.  All
Swift would be inside your framework, which you build, and zip, and place
inside the native/ios folder.

On Mon, Sep 21, 2020 at 1:57 PM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> Thank you.
> The framework is made of  Swift code, but I wonder if the methods have to
> be exposed with the @objc annotation, and it is as usual on the Codename
> side, like the Generate Native Interface and so on, objective-C code
> included.
> Regards
>
> Il giorno lunedì 21 settembre 2020 alle 14:09:30 UTC+2 Steve Hannah ha
> scritto:
>
>> You can create a swift framework in Xcode.  Then zip up the framework and
>> put it in the native/ios directory, e.g.
>> native/ios/MyFramework.framework.zip
>>
>> I do this inside the WebRTC cn1lib I'm currently working on.  I needed to
>> add build hints so that Clang would work with the swift modules properly:
>> ios.pods.build.CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES=YES
>> ios.pods.build.CLANG_ENABLE_MODULES=YES
>>
>> (See full properties file here
>> https://github.com/shannah/CN1WebRTC/blob/master/webrtc/codenameone_library_appended.properties
>> )
>>
>> Steve
>>
>> On Mon, Sep 21, 2020 at 1:59 AM 'P5music' via CodenameOne Discussions <
>> codenameone...@googlegroups.com> wrote:
>>
>>> I would like to add the import/export functions to my Codename App.
>>> The way I need it, It can be done only with native code.
>>> I have that native code in Swift language from the XCode Swift-native
>>> version of my app.
>>> I would like to know if I can expose it  with the
>>> @objc or @objcMembers
>>> annotations for the Swift methods.
>>> I mean, of course the generated files have to be like it is explained in
>>> Codename documentation, but I also would put Swift files in the native
>>> folder that contain the real methods (the "officially" interfaced obj-C
>>> methods call the Swift ones)
>>> Does this make sense?
>>> Thanks
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "CodenameOne Discussions" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to codenameone-discu...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/codenameone-discussions/495f4544-9c31-4b59-8686-e2e57cee7e31n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/codenameone-discussions/495f4544-9c31-4b59-8686-e2e57cee7e31n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Steve Hannah
>> Software Developer
>> Codename One
>> http://www.codenameone.com
>>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/76b5fc97-8da8-40ef-9742-b25928811083n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/76b5fc97-8da8-40ef-9742-b25928811083n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Web Lite Solutions Corp.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CABiRg%2BTZTCdjE4YOfxEptzhAwFVbJk8HcHH%2Bb2ZCv46pfE5m0A%40mail.gmail.com.


Re: [codenameone-discussions] Exposing Swift methods to Generated Native Interface with @objc or @objcMembers annotations

2020-09-21 Thread Steve Hannah
You can create a swift framework in Xcode.  Then zip up the framework and
put it in the native/ios directory, e.g.
native/ios/MyFramework.framework.zip

I do this inside the WebRTC cn1lib I'm currently working on.  I needed to
add build hints so that Clang would work with the swift modules properly:
ios.pods.build.CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES=YES
ios.pods.build.CLANG_ENABLE_MODULES=YES

(See full properties file here
https://github.com/shannah/CN1WebRTC/blob/master/webrtc/codenameone_library_appended.properties
)

Steve

On Mon, Sep 21, 2020 at 1:59 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> I would like to add the import/export functions to my Codename App.
> The way I need it, It can be done only with native code.
> I have that native code in Swift language from the XCode Swift-native
> version of my app.
> I would like to know if I can expose it  with the
> @objc or @objcMembers
> annotations for the Swift methods.
> I mean, of course the generated files have to be like it is explained in
> Codename documentation, but I also would put Swift files in the native
> folder that contain the real methods (the "officially" interfaced obj-C
> methods call the Swift ones)
> Does this make sense?
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/495f4544-9c31-4b59-8686-e2e57cee7e31n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/495f4544-9c31-4b59-8686-e2e57cee7e31n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKUi0Df778EhGiaYRvA1Mdo-bkdVXG9LyCeXhea8D4nRjg%40mail.gmail.com.


Re: [codenameone-discussions] Re: Android Chrome BrowserComponent crazyness

2020-09-07 Thread Steve Hannah
: to test this "bug", you can try opening the below with Android
>>>>>>> Chrome and then with a different browser. On Chrome, the dragging 
>>>>>>> should be
>>>>>>> really slow. If it isn't and you've got the latest update, please let me
>>>>>>> know
>>>>>>>
>>>>>>> https://bl.ocks.org/willzjc/a11626a31c65ba5d319fcf8b8870f281
>>>>>>>
>>>>>>>
>>>>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "CodenameOne Discussions" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to codenameone-discu...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/codenameone-discussions/413e3eaa-e58c-4636-95f6-d57d0633e683n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/codenameone-discussions/413e3eaa-e58c-4636-95f6-d57d0633e683n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "CodenameOne Discussions" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to codenameone-discussions+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/codenameone-discussions/41c0fed6-dc13-42be-8e99-fe8237a7a525n%40googlegroups.com
>> <https://groups.google.com/d/msgid/codenameone-discussions/41c0fed6-dc13-42be-8e99-fe8237a7a525n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/CAG90yJ1%2BymU%2BXYyD7OF%2BJLn0ayGTcGQzYBJYDg7F4f%2Bg5G418A%40mail.gmail.com
> <https://groups.google.com/d/msgid/codenameone-discussions/CAG90yJ1%2BymU%2BXYyD7OF%2BJLn0ayGTcGQzYBJYDg7F4f%2Bg5G418A%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKUgtg%3DjDXp5HZCJzBgeW_PTZYjL-Gip6jcV8bhJ-vj5OQ%40mail.gmail.com.


Re: [codenameone-discussions] new dashboard

2020-09-04 Thread Steve Hannah
Does it do anything at all for you? (error messages, etc..)
What version of Android and browsers?

I just gave it a test in Chrome on Android 9 and 10 and it worked fine on
both for me.

On Fri, Sep 4, 2020 at 10:56 AM Dave Dyer  wrote:

>
> The new dashboard doesn't work on any browser I've tried on android.
> Clicking on the "download" or "install" links for a build doesn't trigger
> a download.
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/da56c6fa-e0f9-40bb-af7c-58c945b5e6dbn%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/da56c6fa-e0f9-40bb-af7c-58c945b5e6dbn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKX%2BQkQmROhJ8M%2BkQTu-9GERWHtCvJQCdDyLdWGi9t3jqw%40mail.gmail.com.


Re: [codenameone-discussions] Re: Sharing option for text file with extension (or other type of files) - issue #3225

2020-09-04 Thread Steve Hannah
I think he's probably referring to just calling CN.execute(filePathOrURL)

If you provide a file path, it will generally allow the user to select from
the apps they have installed that can open that file type.  Many apps have
registered custom URL schemes that will allow you to target those apps
directly.

Steve

Steve

On Thu, Sep 3, 2020 at 11:50 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> Excuse me, what do you mean by sharing information passing data within the
> Uri?
> I need a general sharing option like the Android sharesheet.
> What kind of apps could be reached by the Uri? And notice that I have to
> share a file, not text.
> Il giorno giovedì 3 settembre 2020 alle 05:48:43 UTC+2 Shai Almog ha
> scritto:
>
>> Versions in the system don't mean much since our product is delivered
>> weekly. This feature is scheduled for the next version at this time which
>> means it won't be ready in the next few months as there's a suggested
>> workaround.
>>
>> You can use URLs to share information between apps by passing data within
>> the URI. This is a common practice and works today on iOS/Android.
>>
>> On Wednesday, September 2, 2020 at 11:20:01 AM UTC+3 P5music wrote:
>>
>>> I want to add the sharing option to my CodenameOne app.
>>> It's going to be possible because there is an filed issue:
>>> https://github.com/codenameone/CodenameOne/issues/3225
>>> I see that it is planned for Version 8 release, if I am not wrong.
>>>
>>> I would like to know
>>> -will it be possible to share a txt file with a customized extension,
>>> like myfile.ext, so that available apps can share it, email, cloud
>>> providers app, and so on?
>>> -is Version 8 coming soon?
>>> -is it possible to add an option to "share" with the filesystem, that
>>> is, when the user wants just to leave the file in one of user's folders (in
>>> iOS just some folder are under the user control I think).
>>>
>>> Thanks in advance
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/0282a911-eb2e-4691-8e52-4102a01c7588n%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/0282a911-eb2e-4691-8e52-4102a01c7588n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWdAiMYkiZjxVUXweDg7s3Y2aLuXGNttO5AUpaoX79LvQ%40mail.gmail.com.


Re: [codenameone-discussions] Re: iOS build failing

2020-08-16 Thread Steve Hannah
There was a report (https://stackoverflow.com/a/63247262/2935174)  a few
weeks ago from someone else who was having some build problems with
bluetooth.  He was able to resolve them by building the plugin from source:
https://github.com/codenameone/bluetoothle-codenameone

In response to this I rebuilt the plugin and reposted it, but it's possible
that there is something in my build environment that is still causing a
problem.  (*Though I tested my builds on Android and iOS and they are
working fine for me).

  I recommend you try to build it from source and see if it fixes the issue
for you.

On Sat, Aug 15, 2020 at 9:51 PM James Hastings <
jame...@fastlaneinnovations.com> wrote:

> This issue is now creeping into other Bluetooth projects. I have an app
> that was building and working fine. I changed some text on a label (nothing
> to do with bluetooth), and then the same build error started on this app. I
> changed the label back and it didn't help. I built the project from scratch
> and installed the JSON and Bluetooth plugins, and then copied my classes
> over but no change. I can get the project to build if I comment out any
> calls to the BluetoothLE CN1Lib that would result in that library using the
> JSON plugin. I think something broke in the JSON plugin or there is some
> weird caching issue on the build server. The errors are the same as my
> previously attached log. I also opened an issue on the plugin Github. This
> is bringing my projects to a halt, any suggestions would be most
> appreciated!
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/9a36b10e-2e36-4920-8c78-f29f1687c79eo%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/9a36b10e-2e36-4920-8c78-f29f1687c79eo%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWvbex%2B82D6x_LkustBsK2-as%2BWPebmhjcGWO3WEBH55g%40mail.gmail.com.


Re: [codenameone-discussions] CEF BrowserComponent (simulator) crashes my PC when right-clicking in text editing field

2020-08-10 Thread Steve Hannah
I've filed an issue on this at
https://github.com/codenameone/CodenameOne/issues/3213

On Mon, Aug 10, 2020 at 11:39 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> There is a serious issue in the CEF BrowserComponent.
> My app has a text editing field in the webview. If I right click the text
> area, a huge (as it was magnified) pop-up menu appears and the entire
> system crashes.
> I think this is the way the issue appears. I do not know if other cases
> are possible, for example with a normal web page.
> Thanks in advance
>
> IntelliJ IDEA 2020.2 (Community Edition)
> Build #IC-202.6397.94, built on July 27, 2020
> Runtime version: 11.0.7+10-b944.20 amd64
> VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
> Linux 5.4.0-42-generic
> GC: ParNew, ConcurrentMarkSweep
> Memory: 949M
> Cores: 4
> Non-Bundled Plugins: com.codename1.plugin.intellij
> Current Desktop: ubuntu:GNOME
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/9b7793fa-687c-4f07-8c20-8e461889f18do%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/9b7793fa-687c-4f07-8c20-8e461889f18do%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWFy-DbsiNaWgjy-z92M-prmCUYx7x5uRRQ2uj39SqP8Q%40mail.gmail.com.


Re: [codenameone-discussions] CEF BrowserComponent - Exception in thread "AWT-EventQueue-0"

2020-08-10 Thread Steve Hannah
I've added this to the issue tracker so you can track the progress there.
https://github.com/codenameone/CodenameOne/issues/3212

On Mon, Aug 10, 2020 at 1:33 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> With your suggestions it worked.
> But there's no mean to disable the scrollbars.
> webView.setNativeScrollingEnabled(false);
> webView.setScrollableX(false);
> webView.setScrollableY(false);
> are useless.
> Furthermore a strange behaviour of the BrowserComponent happens: when you
> use the scollbars, it scrolls, then the mouse is catched by the BC and when
> it is inside the control it is like it is scolling, not pointing, so the
> content scrolls in a erratic way.
>
> Il giorno lunedì 10 agosto 2020 07:12:15 UTC+2, Shai Almog ha scritto:
>>
>> Make sure to disable scrolling on the parent form. Also make sure to give
>> the table layout the right amount of height constraint.
>> You would have run into this issue on devices with the FX browser so it's
>> good the CEF browser behaves the same way.
>>
>> The core of the issue is this: browser component can't tell us its
>> preferred size during layout since this requires parsing all the HTML which
>> might not even be available and is happening on a separate thread to begin
>> with. So preferred size is small/zero and the layout correctly places it as
>> a small sliver.
>>
>> The second problem is scrolling which lays out things differently. It can
>> also collide with the native scrolling within the browser itself so nesting
>> scrollables is a big problem here and contributes to janky UI.
>>
>> BorderLayout center on the form solves this in two ways. It implicitly
>> disables the scrolling on the form (Form is the only container that's
>> scrollable by default). The second feature is that the CENTER constraint
>> ignores the preferred size of the component and grants it available space.
>> That way the browser takes up the remaining space regardless of the rest of
>> the content. You can achieve that with TableLayout if you disable scrolling
>> manually and set the width/height percentage via a constraint.
>>
>> On Sunday, August 9, 2020 at 2:34:42 PM UTC+3 P5music wrote:
>>
>>> The browser component just expands when in a BL inside a form.
>>> My layout is made of a TableLayout that reproduces a master/detail
>>> layout. The TL is in the main form.
>>> No matter what combination of Container and BorderLayout axis I create,
>>> the effect is that the BrowserComponent starts just as a tiny spot (some
>>> pixels wide), then if I touch it, it becomes...less tiny, with scrollbars
>>> as previously shown.
>>> Furthermore I experienced instable layout when putting the
>>> BrowserComponent in a real layout, in certain cases the other components
>>> disappeared after interacting with the BC and only the BC remained.
>>> Another case: I put the other components in LEFT, and the BC in RIGHT, I
>>> could see the BC at same vertical size of the other layout stuff on left,
>>> but horizontally speaking in fact the BC covered the other things on the
>>> left of some amount,
>>>
>>>
>>> Il giorno sabato 8 agosto 2020 06:12:17 UTC+2, Shai Almog ha scritto:
>>>>
>>>> Is the browser in the center of a border layout in the parent form?
>>>> It looks like the browser component itself isn't getting enough space
>>>> on the layout. Notice that the form needs to be in border layout and the
>>>> browser component should be in the center of that so it will take up
>>>> available space.
>>>>
>>>> On Friday, August 7, 2020 at 11:44:00 AM UTC+3 P5music wrote:
>>>>
>>>>> It is the same with setNativeScrollingEnabled(false), scrollbars are
>>>>> there yet. And the BrowserComponent is tiny, it seems empty but in Chrome 
>>>>> I
>>>>> see the content in a very tiny window.
>>>>>
>>>>>
>>>>> Il giorno venerdì 7 agosto 2020 04:52:03 UTC+2, Shai Almog ha scritto:
>>>>>>
>>>>>> Did you try setNativeScrollingEnabled(false) on the browser component?
>>>>>>
>>>>>> On Thursday, August 6, 2020 at 11:46:05 AM UTC+3 insig...@libero.it
>>>>>> wrote:
>>>>>>
>>>>>>> In Chrome I see that control in a very big size but it is tiny in
>>>>>>> fact, with just the scrollbars, but the editor is inside, 

Re: [codenameone-discussions] Simulator: iPad3 skin dpi is like Android hdpi device

2020-08-10 Thread Steve Hannah
This is for all devices.  While many of the names correspond to Android's
naming, this density reading should be accurate for all devices.   You can
get exact conversion from MM to Pixels using CN.convertToPixels().

On Mon, Aug 10, 2020 at 2:05 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> I am using the simulator with iPad3 skin.
> If I call Display.getInstance().getDeviceDensity(), the result corresponds
> to hdpi Android device, that is not for Apple devices too.
> Is it right?
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/a74b3b8c-6b89-4855-ac16-84346062662bo%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/a74b3b8c-6b89-4855-ac16-84346062662bo%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWxUxq--QTUP6hUip91%2B0GYq_ikmW8Qh29b908x9sddTA%40mail.gmail.com.


Re: [codenameone-discussions] CEF BrowserComponent dpi

2020-08-10 Thread Steve Hannah
I've opened an issue for this in the issuetracker so you can follow its
progress there.
https://github.com/codenameone/CodenameOne/issues/3211

On Mon, Aug 10, 2020 at 5:40 AM Steve Hannah 
wrote:

> Currently the browser component in the simulator doesn't fully incorporate
> the skin DPI settings.  It sets itself to the DPI of the display, not the
> skin.  This is an improvement over the way the JavaFX webview dealt with
> HiDPI, but it is still something on my list to improve.  When using the
> desktop skin you'll get good results.  For other themes, you'll probably
> need to size the simulator window appropriately to approximate the relative
> size for now.
>
> On Mon, Aug 10, 2020 at 2:19 AM 'P5music' via CodenameOne Discussions <
> codenameone-discussions@googlegroups.com> wrote:
>
>> My app has a layout with a BrowserComponent inside.
>> It has text and images inside:
>>
>> setPage("" +
>> ""+
>> "> contenteditable=\"true\">This text can be edited by the
>> user.","");
>>
>> I am able to encode some images and put them on the page, with:
>>
>> public String createIconImageUri(Image iconImage)
>> {
>> EncodedImage em = EncodedImage.createFromImage(iconImage, false);
>> byte[] data = em.getImageData();
>> String iconUri=BrowserComponent.createDataURI(data,"image/png");
>> return iconUri;
>> }
>>
>> I see that the text and the image size does not match what is in the
>> layout external to the BrowserComponent, like they are doubled in the BC.
>> There is some dpi question here. Note that the simulator skin is iPad3
>> and dpi=240 (wrong? see my other thread) and the size of the images on the
>> layout is 72.
>> What can be said about the viewport of the CEF BrowserComponent or
>> similar adjustments?
>> Thanks in advance
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "CodenameOne Discussions" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to codenameone-discussions+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/codenameone-discussions/56f03163-428c-4df1-a360-bbf0d9cccf19o%40googlegroups.com
>> <https://groups.google.com/d/msgid/codenameone-discussions/56f03163-428c-4df1-a360-bbf0d9cccf19o%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Steve Hannah
> Software Developer
> Codename One
> http://www.codenameone.com
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXU0gbXkkB8nt%3D25Rq%3DxSkxpsg7uOjjNGDk%3D1HDaLtRKg%40mail.gmail.com.


Re: [codenameone-discussions] CEF BrowserComponent dpi

2020-08-10 Thread Steve Hannah
Currently the browser component in the simulator doesn't fully incorporate
the skin DPI settings.  It sets itself to the DPI of the display, not the
skin.  This is an improvement over the way the JavaFX webview dealt with
HiDPI, but it is still something on my list to improve.  When using the
desktop skin you'll get good results.  For other themes, you'll probably
need to size the simulator window appropriately to approximate the relative
size for now.

On Mon, Aug 10, 2020 at 2:19 AM 'P5music' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> My app has a layout with a BrowserComponent inside.
> It has text and images inside:
>
> setPage("" +
> ""+
> " contenteditable=\"true\">This text can be edited by the
> user.","");
>
> I am able to encode some images and put them on the page, with:
>
> public String createIconImageUri(Image iconImage)
> {
> EncodedImage em = EncodedImage.createFromImage(iconImage, false);
> byte[] data = em.getImageData();
> String iconUri=BrowserComponent.createDataURI(data,"image/png");
> return iconUri;
> }
>
> I see that the text and the image size does not match what is in the
> layout external to the BrowserComponent, like they are doubled in the BC.
> There is some dpi question here. Note that the simulator skin is iPad3 and
> dpi=240 (wrong? see my other thread) and the size of the images on the
> layout is 72.
> What can be said about the viewport of the CEF BrowserComponent or similar
> adjustments?
> Thanks in advance
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/56f03163-428c-4df1-a360-bbf0d9cccf19o%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/56f03163-428c-4df1-a360-bbf0d9cccf19o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXV9-qvf4QYq%3D1Vk9MHSy10q0i%2BfaegFaNkraPgk3L%2BQw%40mail.gmail.com.


Re: [codenameone-discussions] Fingerprint dialog not shoing cancel button on Android 7+

2020-08-07 Thread Steve Hannah
That looks great!  Can you submit a PR?

On Fri, Aug 7, 2020 at 5:33 AM Mark Bolduc 
wrote:

> Attached. "TouchIdDialogAndroid.jpg"
>
> Regards.
>
> On Thursday, August 6, 2020 at 10:33:43 AM UTC-4, Mark Bolduc wrote:
>>
>> Thanks Steve, I have emulated the IOS Dialog for Android.
>>
>> I have downloaded the Fingerprint class and modified the
>> showDialogOnAndroid method.
>>
>> See Pic attached "TouchIdDialogAndroid.jpg"
>>
>> Do you think this is safe for me to use a local copy of the Fingerprint
>> class regarding  future product builds?
>>
>> Thoughts?
>>
>> Regards.
>>
>> On Monday, August 3, 2020 at 9:45:15 AM UTC-4, Steve Hannah wrote:
>>>
>>> Here is the source for the dialog that is shown.
>>>
>>> https://github.com/codenameone/FingerprintScanner/blob/master/src/com/codename1/fingerprint/Fingerprint.java#L332
>>>
>>> On Fri, Jul 31, 2020 at 2:48 PM Mark Bolduc 
>>> wrote:
>>>
>>>> For consistency, can you either add one of send me the link to the
>>>> source and I will add a cancel button.
>>>>
>>>> Thoughts?
>>>>
>>>> Regards.
>>>>
>>>> On Thursday, July 30, 2020 at 9:44:38 AM UTC-4, Steve Hannah wrote:
>>>>>
>>>>> Some things to note:
>>>>>
>>>>> 1. iOS uses a native dialog (we have no control over it).
>>>>> 2. Android (<10) uses a prompt that we provide (optionally).  It never
>>>>> included a cancel button.
>>>>>
>>>>>
>>>>>
>>>>> On Thu, Jul 30, 2020 at 6:38 AM Mark Bolduc 
>>>>> wrote:
>>>>>
>>>>>> If you are experiencing an issue please mention the full platform
>>>>>> your issue applies to:
>>>>>> IDE: NetBeans/Eclipse/IDEA Netbeans 12
>>>>>> Desktop OS Windows 10 Pro
>>>>>> Simulator latest
>>>>>> Device Android
>>>>>>
>>>>>> Not able to cancel request for scan as Cancel Button not visible. See
>>>>>> pic "AndroidGalaxy5S2FingerPrintScannerIssue_1.jpg"
>>>>>> Ok on IOS see pic "AndroidGalaxy5S2FingerPrintScannerIssue_2.png"
>>>>>>
>>>>>> Regards
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "CodenameOne Discussions" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to codenameone-discussions+unsubscr...@googlegroups.com
>>>>>> .
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/codenameone-discussions/c1500c66-bf24-4b03-ba17-4fc7abed0899o%40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/codenameone-discussions/c1500c66-bf24-4b03-ba17-4fc7abed0899o%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Steve Hannah
>>>>> Software Developer
>>>>> Codename One
>>>>> http://www.codenameone.com
>>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "CodenameOne Discussions" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to codenameone-discussions+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/codenameone-discussions/4d0a01fa-ed67-48f1-8370-862c97717150o%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/codenameone-discussions/4d0a01fa-ed67-48f1-8370-862c97717150o%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>>
>>> --
>>> Steve Hannah
>>> Software Developer
>>> Codename One
>>> http://www.codenameone.com
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/93e3ec4c-f370-480f-a211-7568c3081470o%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/93e3ec4c-f370-480f-a211-7568c3081470o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVOgSj9MwX7RgoG8pY2PjNyiN81g3g1k6_GXoNDeQyodA%40mail.gmail.com.


Re: [codenameone-discussions] Fingerprint dialog not shoing cancel button on Android 7+

2020-08-06 Thread Steve Hannah
I don't see the attachment.  Can you send it again?

On Thu, Aug 6, 2020 at 7:33 AM Mark Bolduc 
wrote:

> Thanks Steve, I have emulated the IOS Dialog for Android.
>
> I have downloaded the Fingerprint class and modified the
> showDialogOnAndroid method.
>
> See Pic attached "TouchIdDialogAndroid.jpg"
>
> Do you think this is safe for me to use a local copy of the Fingerprint
> class regarding  future product builds?
>
> Thoughts?
>
> Regards.
>
> On Monday, August 3, 2020 at 9:45:15 AM UTC-4, Steve Hannah wrote:
>>
>> Here is the source for the dialog that is shown.
>>
>> https://github.com/codenameone/FingerprintScanner/blob/master/src/com/codename1/fingerprint/Fingerprint.java#L332
>>
>> On Fri, Jul 31, 2020 at 2:48 PM Mark Bolduc 
>> wrote:
>>
>>> For consistency, can you either add one of send me the link to the
>>> source and I will add a cancel button.
>>>
>>> Thoughts?
>>>
>>> Regards.
>>>
>>> On Thursday, July 30, 2020 at 9:44:38 AM UTC-4, Steve Hannah wrote:
>>>>
>>>> Some things to note:
>>>>
>>>> 1. iOS uses a native dialog (we have no control over it).
>>>> 2. Android (<10) uses a prompt that we provide (optionally).  It never
>>>> included a cancel button.
>>>>
>>>>
>>>>
>>>> On Thu, Jul 30, 2020 at 6:38 AM Mark Bolduc 
>>>> wrote:
>>>>
>>>>> If you are experiencing an issue please mention the full platform your
>>>>> issue applies to:
>>>>> IDE: NetBeans/Eclipse/IDEA Netbeans 12
>>>>> Desktop OS Windows 10 Pro
>>>>> Simulator latest
>>>>> Device Android
>>>>>
>>>>> Not able to cancel request for scan as Cancel Button not visible. See
>>>>> pic "AndroidGalaxy5S2FingerPrintScannerIssue_1.jpg"
>>>>> Ok on IOS see pic "AndroidGalaxy5S2FingerPrintScannerIssue_2.png"
>>>>>
>>>>> Regards
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "CodenameOne Discussions" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to codenameone-discussions+unsubscr...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/codenameone-discussions/c1500c66-bf24-4b03-ba17-4fc7abed0899o%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/codenameone-discussions/c1500c66-bf24-4b03-ba17-4fc7abed0899o%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>
>>>>
>>>> --
>>>> Steve Hannah
>>>> Software Developer
>>>> Codename One
>>>> http://www.codenameone.com
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "CodenameOne Discussions" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to codenameone-discussions+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/codenameone-discussions/4d0a01fa-ed67-48f1-8370-862c97717150o%40googlegroups.com
>>> <https://groups.google.com/d/msgid/codenameone-discussions/4d0a01fa-ed67-48f1-8370-862c97717150o%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Steve Hannah
>> Software Developer
>> Codename One
>> http://www.codenameone.com
>>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/fb8f2a75-b746-4f58-bc7f-a5df54f4c37fo%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/fb8f2a75-b746-4f58-bc7f-a5df54f4c37fo%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXEO6Qqaub9iif8T0UZZD6XMqbB-SsahsFLi6Xw41f6yQ%40mail.gmail.com.


Re: [codenameone-discussions] CEF BrowserComponent - Exception in thread "AWT-EventQueue-0"

2020-08-05 Thread Steve Hannah
While your app is open, you can debug the web view in Chrome by going to
http://localhost:8088

That might offer you some clues as to what is going wrong.



On Wed, Aug 5, 2020 at 11:28 AM 'Angelo Maci' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> My Codename app has a BrowserComponent with a text editor inside. When
> JavaFX was used the editor was displayed but had some issues.
> Now I am running the same code with CEF support. I had to copy the
> .idea-IC-201.7223.91/jbr/lib/libjawt.so file into the
> /home/pc/.codenameone/cef/lib/linux64 folder to get the BrowserComponent
> loaded.
> Now I can see just horizontal and vertical scrollbar, and no content.
> In log I get this:
>
> CEF Args: [--disable-gpu, --disable-software-rasterizer,
> --disable-gpu-compositing, --touch-events=enabled, --enable-media-stream,
> --device-scale-factor=4, --force-device-scale-factor=4,
> --autoplay-policy=no-user-gesture-required,
> --enable-usermedia-screen-capturing]
> Using:
> JCEF Version = 83.4.0.260
> CEF Version = 83.4.0
> Chromium Version = 83.0.4103.106
> initialize on Thread[AWT-EventQueue-0,6,main] with library path
> /home/pc/.codenameone/cef/lib/linux64
> Added scheme search://
> Added scheme client://
> Added scheme cn1stream://
>
> DevTools listening on ws://
> 127.0.0.1:8088/devtools/browser/acb758a2-831d-41c5-9102-d61c9fbadc52
> AppHandler.stateHasChanged: NEW
> AppHandler.stateHasChanged: INITIALIZING
> AppHandler.stateHasChanged: INITIALIZED
> CEF Args: [--disable-gpu, --disable-software-rasterizer,
> --disable-gpu-compositing, --touch-events=enabled, --enable-media-stream,
> --device-scale-factor=4, --force-device-scale-factor=4,
> --autoplay-policy=no-user-gesture-required,
> --enable-usermedia-screen-capturing]
> Setting URL but not ready https://cn1app/streams/1
> Running ready callbacks
> Running ready callbacks
> Setting url https://cn1app/streams/1
> Exception in thread "AWT-EventQueue-0" Exception in thread
> "AWT-EventQueue-0" Stream was closed
> Address changed to https://cn1app/streams/1
> onload
> Exception in thread "AWT-EventQueue-0" Exception in thread
> "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" Exception in
> thread "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0" Exception
> in thread "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0"
> Exception in thread "AWT-EventQueue-0" Exception in thread
> "AWT-EventQueue-0" Exception in thread "AWT-EventQueue-0"
>
> my system is
>
> IntelliJ IDEA 2020.2 (Community Edition)
> Build #IC-202.6397.94, built on July 27, 2020
> Runtime version: 11.0.7+10-b944.20 amd64
> VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
> Linux 5.4.0-42-generic
> GC: ParNew, ConcurrentMarkSweep
> Memory: 949M
> Cores: 4
> Non-Bundled Plugins: com.codename1.plugin.intellij
> Current Desktop: ubuntu:GNOME
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/ff0d12eb-f412-4777-bcc6-e90eab8e3275o%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/ff0d12eb-f412-4777-bcc6-e90eab8e3275o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVDUgy-mQ2g3PDEa8MR5ZwRG0zBYgMWF4jy-5j-DEbuqQ%40mail.gmail.com.


Re: [codenameone-discussions] Re: Failed to create CEF browser - Error in simulator

2020-08-05 Thread Steve Hannah
Here is a post elaborating on my suggestion about adding to LD_LIBRARY_PATH
https://forums.spiralknights.com/en/node/51696

You'd probably need to added these to your environment used to launch
intelliJ

On Wed, Aug 5, 2020 at 2:18 AM 'Angelo Maci' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> Instead, I checked, I have
> java -version
> openjdk version "11.0.8" 2020-07-14
> OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu120.04)
> OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0ubuntu120.04, mixed
> mode, sharing)
>
> but the environment variables are empty as I said.
>
>
> Il giorno mercoledì 5 agosto 2020 11:13:00 UTC+2, Angelo Maci ha scritto:
>>
>> JAVA_HOME and LD_LIBRARY_PATH are empty on my system. I have IntelliJ
>> Idea and AndroidStudio installed, but I think I did not install standalone
>> java.
>> What have I to do?
>>
>> Il giorno martedì 4 agosto 2020 14:25:45 UTC+2, Steve Hannah ha scritto:
>>>
>>> It says it can't find libjawt.so, which should be part of your jdk
>>> distribution.  I can't seem to reproduce this issue on my system.  Perhaps
>>> try adding $JAVA_HOME/lib to your LD_LIBRARY_PATH environment variable.
>>>
>>> Searching on Google for "Unsatisfied Link libjawt.so" brings up lots of
>>> results with people having this error in different contexts with different
>>> libraries on linux, so seems to be a common issue.
>>>
>>> On Tue, Aug 4, 2020 at 1:02 AM 'Angelo Maci' via CodenameOne Discussions
>>>  wrote:
>>>
>>>> In my app there is a BrowserComponent in the layout, that was displayed
>>>> in JAVA FX although not properly working.
>>>>
>>>> Il giorno martedì 4 agosto 2020 09:58:50 UTC+2, Angelo Maci ha scritto:
>>>>>
>>>>> If you are experiencing an issue please mention the full platform your
>>>>> issue applies to:
>>>>> IntelliJ IDEA 2020.2 (Community Edition)
>>>>> Build #IC-202.6397.94, built on July 27, 2020
>>>>> Runtime version: 11.0.7+10-b944.20 amd64
>>>>> VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
>>>>> Linux 5.4.0-42-generic
>>>>> GC: ParNew, ConcurrentMarkSweep
>>>>> Memory: 949M
>>>>> Cores: 4
>>>>> Non-Bundled Plugins: com.codename1.plugin.intellij
>>>>> Current Desktop: ubuntu:GNOME
>>>>>
>>>>> CEF has installed.
>>>>> Trying for the first time to run my app on the simulator I get this
>>>>> error in a dialog: "Exception: java.lang.RuntimeException - Failed to
>>>>> create CEF browser".
>>>>>
>>>>> And in the log:
>>>>>
>>>>> Exception: java.lang.RuntimeException - Failed to create CEF browser
>>>>> java.lang.RuntimeException: Failed to create CEF browser
>>>>> at
>>>>> com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:106)
>>>>> at
>>>>> com.codename1.impl.javase.cef.JavaCEFSEPort.createBrowserComponent(JavaCEFSEPort.java:81)
>>>>> at com.codename1.ui.BrowserComponent$9.run(BrowserComponent.java:531)
>>>>> at com.codename1.ui.Display.processSerialCalls(Display.java:1331)
>>>>> at com.codename1.ui.Display.edtLoopImpl(Display.java:1274)
>>>>> at com.codename1.ui.Display.mainEDTLoop(Display.java:1162)
>>>>> at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
>>>>> at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176)
>>>>> Caused by: java.lang.reflect.InvocationTargetException
>>>>> at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1367)
>>>>> at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1342)
>>>>> at
>>>>> com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:99)
>>>>> ... 7 more
>>>>> Caused by: java.lang.UnsatisfiedLinkError:
>>>>> /home/pc/.codenameone/cef/lib/linux64/libjcef.so: libjawt.so: impossibile
>>>>> aprire il file oggetto condiviso: File o directory non esistente
>>>>> at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
>>>>> at
>>>>> java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
>>>>> at
>>>>

Re: [codenameone-discussions] Re: Failed to create CEF browser - Error in simulator

2020-08-04 Thread Steve Hannah
onDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
>> at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
>> at
>> java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
>> at
>> java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
>> at
>> java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
>> at
>> java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
>> at
>> java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
>> at
>> java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
>> java.lang.RuntimeException: Failed to create CEF browser
>> at
>> com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:106)
>> at
>> com.codename1.impl.javase.cef.JavaCEFSEPort.createBrowserComponent(JavaCEFSEPort.java:81)
>> at com.codename1.ui.BrowserComponent$9.run(BrowserComponent.java:531)
>> at com.codename1.ui.Display.processSerialCalls(Display.java:1331)
>> at com.codename1.ui.Display.edtLoopImpl(Display.java:1274)
>> at com.codename1.ui.Display.invokeAndBlock(Display.java:1446)
>> at com.codename1.ui.Display.invokeAndBlock(Display.java:1485)
>> at com.codename1.ui.Form.showModal(Form.java:2429)
>> at com.codename1.ui.Dialog.showModal(Dialog.java:1138)
>> at com.codename1.ui.Dialog.show(Dialog.java:582)
>> at com.codename1.ui.Dialog.showPackedImpl(Dialog.java:1439)
>> at com.codename1.ui.Dialog.showPacked(Dialog.java:1355)
>> at com.codename1.ui.Dialog.showImpl(Dialog.java:1094)
>> at com.codename1.ui.Dialog.show(Dialog.java:1072)
>> at com.codename1.ui.Dialog.show(Dialog.java:1027)
>> at com.codename1.ui.Dialog.show(Dialog.java:793)
>> at com.codename1.ui.Dialog.show(Dialog.java:746)
>> at com.codename1.ui.Dialog.show(Dialog.java:711)
>> at com.codename1.ui.Dialog.show(Dialog.java:652)
>> at com.codename1.ui.Dialog.show(Dialog.java:807)
>> at com.codename1.ui.Display.mainEDTLoop(Display.java:1175)
>> at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
>> at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176)
>> Caused by: java.lang.reflect.InvocationTargetException
>> at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1367)
>> at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1342)
>> at
>> com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:99)
>> ... 22 more
>> Caused by: java.lang.UnsatisfiedLinkError:
>> /home/pc/.codenameone/cef/lib/linux64/libjcef.so: libjawt.so: impossibile
>> aprire il file oggetto condiviso: File o directory non esistente
>> at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
>> at
>> java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
>> at
>> java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
>> at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
>> at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2640)
>> at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830)
>> at java.base/java.lang.System.loadLibrary(System.java:1873)
>> at org.cef.SystemBootstrap$1.loadLibrary(SystemBootstrap.java:24)
>> at org.cef.SystemBootstrap.loadLibrary(SystemBootstrap.java:36)
>> at org.cef.CefApp.startup(CefApp.java:536)
>> at
>> com.codename1.impl.javase.cef.CEFBrowserComponent.create(CEFBrowserComponent.java:178)
>> at
>> com.codename1.impl.javase.cef.CEFBrowserComponent.create(CEFBrowserComponent.java:170)
>> at
>> com.codename1.impl.javase.cef.CEFBrowserComponent.create(CEFBrowserComponent.java:167)
>> at
>> com.codename1.impl.javase.cef.JavaCEFSEPort.createCEFBrowserComponent(JavaCEFSEPort.java:112)
>> at
>> com.codename1.impl.javase.cef.JavaCEFSEPort$2.run(JavaCEFSEPort.java:102)
>> at
>> java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:303)
>> at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
>> at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
>> at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
>> at java.base/java.security.AccessController.doPrivileged(Native Method)
>> at
>> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
>> at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
>> at
>> java

Re: [codenameone-discussions] Fingerprint dialog not shoing cancel button on Android 7+

2020-08-03 Thread Steve Hannah
Here is the source for the dialog that is shown.
https://github.com/codenameone/FingerprintScanner/blob/master/src/com/codename1/fingerprint/Fingerprint.java#L332

On Fri, Jul 31, 2020 at 2:48 PM Mark Bolduc <
shop.service.assist...@gmail.com> wrote:

> For consistency, can you either add one of send me the link to the source
> and I will add a cancel button.
>
> Thoughts?
>
> Regards.
>
> On Thursday, July 30, 2020 at 9:44:38 AM UTC-4, Steve Hannah wrote:
>>
>> Some things to note:
>>
>> 1. iOS uses a native dialog (we have no control over it).
>> 2. Android (<10) uses a prompt that we provide (optionally).  It never
>> included a cancel button.
>>
>>
>>
>> On Thu, Jul 30, 2020 at 6:38 AM Mark Bolduc 
>> wrote:
>>
>>> If you are experiencing an issue please mention the full platform your
>>> issue applies to:
>>> IDE: NetBeans/Eclipse/IDEA Netbeans 12
>>> Desktop OS Windows 10 Pro
>>> Simulator latest
>>> Device Android
>>>
>>> Not able to cancel request for scan as Cancel Button not visible. See
>>> pic "AndroidGalaxy5S2FingerPrintScannerIssue_1.jpg"
>>> Ok on IOS see pic "AndroidGalaxy5S2FingerPrintScannerIssue_2.png"
>>>
>>> Regards
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "CodenameOne Discussions" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to codenameone-discussions+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/codenameone-discussions/c1500c66-bf24-4b03-ba17-4fc7abed0899o%40googlegroups.com
>>> <https://groups.google.com/d/msgid/codenameone-discussions/c1500c66-bf24-4b03-ba17-4fc7abed0899o%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Steve Hannah
>> Software Developer
>> Codename One
>> http://www.codenameone.com
>>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/4d0a01fa-ed67-48f1-8370-862c97717150o%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/4d0a01fa-ed67-48f1-8370-862c97717150o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKX-yZf3D7w-ys5friWbodQ%3DiP8RdjK-m9j%2BqH8gLoGhsw%40mail.gmail.com.


Re: [codenameone-discussions] Fingerprint dialog not shoing cancel button on Android 7+

2020-07-30 Thread Steve Hannah
Some things to note:

1. iOS uses a native dialog (we have no control over it).
2. Android (<10) uses a prompt that we provide (optionally).  It never
included a cancel button.



On Thu, Jul 30, 2020 at 6:38 AM Mark Bolduc <
shop.service.assist...@gmail.com> wrote:

> If you are experiencing an issue please mention the full platform your
> issue applies to:
> IDE: NetBeans/Eclipse/IDEA Netbeans 12
> Desktop OS Windows 10 Pro
> Simulator latest
> Device Android
>
> Not able to cancel request for scan as Cancel Button not visible. See pic
> "AndroidGalaxy5S2FingerPrintScannerIssue_1.jpg"
> Ok on IOS see pic "AndroidGalaxy5S2FingerPrintScannerIssue_2.png"
>
> Regards
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/c1500c66-bf24-4b03-ba17-4fc7abed0899o%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/c1500c66-bf24-4b03-ba17-4fc7abed0899o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWoK_cWEO2g%2Brtvy1Cc-EMSGjxX3q0%2BrR42nQNfDmpmsA%40mail.gmail.com.


Re: [codenameone-discussions] Re: newly updated (today) fingerprintscanner.cn.lib causing failed compile on build server for Android

2020-07-28 Thread Steve Hannah
The fingerprint scanner lib now requires build tools 29 or higher.  See the
installation instructions here:
https://github.com/codenameone/FingerprintScanner#installation

On Tue, Jul 28, 2020 at 6:20 AM Mark Bolduc <
shop.service.assist...@gmail.com> wrote:

> Do we have an estimate to when this will be resolved.
>
> I am unable to build on android currently.
>
> Thoughts?
>
> Regards
>
> On Saturday, July 25, 2020 at 10:16:47 PM UTC-4, Shai Almog wrote:
>>
>> Thanks for the headsup. Posted this to the issue here:
>> https://github.com/codenameone/CodenameOne/issues/3045
>>
>> On Sunday, July 26, 2020 at 1:19:04 AM UTC+3 shop.servic...@gmail.com
>> wrote:
>>
>>> If you are experiencing an issue please mention the full platform your
>>> issue applies to:
>>> IDE: NetBeans/Eclipse/IDEA Netbeans 12
>>> Desktop OS Windows 10 Pro
>>> Simulator latest
>>> Device Android
>>>
>>> netbeans reports (IOS and ANDROID) warning:
>>> \lib\impl\native\javase\com\codename1\fingerprint\impl\InternalFingerprintImpl.java
>>> uses or overrides a deprecated API.
>>>
>>> Build Server produces this error report (Please see
>>> "CodenameoneBuildError_Android_.txt") only on Android build
>>>
>>> Regards
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/41f9b086-ae4f-4f29-8381-ec9126c36d9fo%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/41f9b086-ae4f-4f29-8381-ec9126c36d9fo%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWAmWMdXqTOYJfH66-SkJwngmyxyGt3fAjMAHicBxwe2Q%40mail.gmail.com.


Re: [codenameone-discussions] ending javafx

2020-07-17 Thread Steve Hannah
If you're playing sound clips, then you'll need to do one of the following:
1. Use a JDK that has JavaFX
2. Install CEF (per the blog post)
3. Copy the JMF JAR file (
https://github.com/codenameone/cn1-binaries/blob/master/javase/jmf-2.1.1e.jar)
into your ~/.codenameone directory.

Ultimately the default will be CEF, and it will be seamless (you won't have
to do anything special).  This will be a short transition period.


On Fri, Jul 17, 2020 at 9:51 AM Dave Dyer  wrote:

>
> It's not completely clear from recent messages regarding javafx, but it
> appears
> that if my app only uses javafx to play sound clips, I won't be affected
> by the
> transition.  Is that correct?
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/999e9513-b53b-476e-a768-7810c9117d87o%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/999e9513-b53b-476e-a768-7810c9117d87o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKV7Lr4M0x8MPV4UL2jUtCUWkwuTh1LugZB4jXVhd-N85Q%40mail.gmail.com.


Re: [codenameone-discussions] BrowserComponent editing not working / JCEF support release

2020-07-16 Thread Steve Hannah
While the github master is dialed in to use CEF, we haven't yet published
the "CEF" part of it.  There will be more information about this on the
blog soon.

On Thu, Jul 16, 2020 at 3:40 AM 'Angelo Maci' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> If you are experiencing an issue please mention the full platform your
> issue applies to:
> IDE: NetBeans/Eclipse/IDEA
> IntelliJ IDEA 2020.1.3 (Community Edition)
> Build #IC-201.8538.31, built on July 7, 2020
> Runtime version: 11.0.7+10-b765.64 amd64
> VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
> Linux 5.4.0-40-generic
> GC: ParNew, ConcurrentMarkSweep
> Memory: 949M
> Cores: 4
> Non-Bundled Plugins: com.codename1.plugin.intellij, org.jetbrains.kotlin
> Current Desktop: ubuntu:GNOME
> Desktop OS Linux
> Simulator
>
> I took a look at github commit history but because of I am not a github
> expert I did not find explicit JCEF releases. I assume that's one of them,
> so I tested the BrowserComponent about this issue:
>
> https://stackoverflow.com/questions/62672861/text-editing-by-user-not-possible-in-browsercomponent-codename-one-simulator
> Still having the same issue.
> I think no update happened on my system and it says "no plugin updates
> available", as an issue on updating was aknowledged but maybe it is still
> bugging the system.
> Or the editing in the BrowserComponent still does not work.
> Or the simulator has to be updated itself, I do not know.
> What's wrong?
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/804f8d5e-856e-4b89-9d80-a3509bf674a1o%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/804f8d5e-856e-4b89-9d80-a3509bf674a1o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWQFtYTuzga8mMzknOjKaarGjdSR%2B4rrqutzDp_iwdhJA%40mail.gmail.com.


Re: [codenameone-discussions] iOS - Apple App store - Switching from CodenameOne app to native app, seamlessly with app update.

2020-07-16 Thread Steve Hannah
>
> I would like to know if creating a Codename One version of the app and
> publishing it on the Apple App store prevents from releasing a native app
> in a future time with the same "package name" or whatever it is like on
> Apple store, with perfect updating and then managing all data in private
> app folders (the app internal files).
> Is it possible?
>

Publishing a Codename One app would not prevent you from later publishing a
native app with the same package name (or different package name).  As for
accessing app internal files, Codename One apps *are* native apps, so it is
possible to develop your native app to use the app's existing app folders
and internal files.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKW8J9n3tbeN2NPe4XyH33P%2BgaFzbn2bMu2-0D-1f%2Bne0A%40mail.gmail.com.


Re: [codenameone-discussions] Re: Admob not working on Android now

2020-05-08 Thread Steve Hannah
One thing to check is that ad id, as I think Android and iOS can't use the
same ad ids.  Try the test ads they provide and see if they work.
https://developers.google.com/admob/ios/test-ads
https://developers.google.com/admob/android/test-ads

Notice the Ids for the iOS test ads are different than for the Android test
ads.

On Fri, May 8, 2020 at 2:09 AM Carlos Verdier  wrote:

> I can see this in the output:
>
> 05-08 10:19:27.166 4144-4176/? W/System.err: inside
> AdMobFullPageImpl.isLoaded - activity is not null
> 05-08 10:19:27.166 4144-4144/? W/System.err: loaded = false
>
> I can see those lines in AdMobNativeImpl.java
> The first line is ok, nothig wrong there
> But I don't get why is not loading
>
> If I implement setAdsListener, I can see an error 3 in onAdFailedToLoad.
> So I guess the code is fine but for some reason Google is not serving ads
> for this app, which is in development stage, still no in stores. I could
> think of some misconfiguration on Admob panel, but this same app was
> showing ads just a few days ago, and iOS is showing ads for this same app.
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/969c7fa0-2bce-4db7-a897-7171c5112d49%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/969c7fa0-2bce-4db7-a897-7171c5112d49%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKU4qE3k9R99aQ0uQftKXsj7oi5KqC59SbmuLLGaSQvSOw%40mail.gmail.com.


Re: [codenameone-discussions] Datetime conversions

2020-04-20 Thread Steve Hannah
I usually use date1.getTime() to convert the date to milliseconds since
epoch.  Then you can just perform arithmetic to figure out the date,
minutes,etc.  Minute, hour, second, day, week are easy to calculate from
milliseconds.  Months and years is harder due to varying number of days in
months/years.



On Mon, Apr 20, 2020 at 1:37 PM Peter Bell  wrote:

> Hi
>
> I was wondering if in Codenameone there are the smane functions as in
> vb.net  fpr
> 1.  convert datetime to double and double to datetime
> 2.  to get the difference in days, minutes between two dates
>
> ciao.
> Peter Bell
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/ea049a27-2cae-41c2-abee-11ae8940912a%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/ea049a27-2cae-41c2-abee-11ae8940912a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWVEWWkFVgRVgHxOtjEOO0P8JmuYfAnYvHVSqVrUS6Mhw%40mail.gmail.com.


Re: [codenameone-discussions] Re: graphics performance

2020-04-08 Thread Steve Hannah
Underneath the covers, iOS has a completely different graphics
implementation than desktop, so it's possible that some graphics operation
you are performing is "slow" on the iOS stack.  Even just comparing
graphics rendering of mutable images vs to the screen on the same platform,
there may be very different implementations under the hood.  On iOS,
especially this is the case as the graphics implementation of mutable
images shares very little with the implementation to screen; the latter
using OpenGL - and soon Metal.  In the past, iOS was known to have slow
mutable images - i'm not sure to what extent, if any, this is still the
case.

There is a method Display.areMutableImagesFast() which returns false on iOS
and true elsewhere.  This is used in various parts of our codebase where we
may consider rendering to an image for performance reasons (e.g. during
transitions) - we use this flag to decide not to render to an image buffer
in such cases.



On Wed, Apr 8, 2020 at 4:44 AM Dave Dyer  wrote:

> This is only for rendering the main frame, not the buffering costs which
> are incurred elsewhere.  But this rendering is to an offscreen
> buffer rather than where ever the direct paint would go.  I'd be happy to
> paint directly if that was visually acceptable.
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/7aac6293-9c92-4e46-ba7c-cb78efc62a9c%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/7aac6293-9c92-4e46-ba7c-cb78efc62a9c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKViUUPCKkgGT1c4Rg5TVYZtwj3C3L3HjWfDiLEkyLC7bg%40mail.gmail.com.


Re: [codenameone-discussions] cn1-native-controls Implementation crash in UpdateStyle

2020-04-02 Thread Steve Hannah
Xcode will show the stack in its left panel.

On Thu, Apr 2, 2020 at 6:59 PM B3G B3G  wrote:

> nothin traced in xcode, i think the following screenshot will help you
>
>
> Le ven. 3 avr. 2020 à 02:43, Steve Hannah 
> a écrit :
>
>> Can you post the stack trace from Xcode?
>>
>> On Thu, Apr 2, 2020 at 6:04 PM B3G B3G  wrote:
>>
>>> I am trying to test NTextField in Xcode, i have already Implement a
>>> cn1-native-controls in my project and implementation has ben well done.  
>>> but,
>>> unfortunately the app crash while i trying to instantiate "NTextField".
>>> I extracted the generated source code & run it on Xcode this is the error
>>> log trace I got: (screen shot)
>>>
>>>
>>> my code is :
>>>
>>>
>>>  NTextField tf1 = new NTextField(TextField.PASSWORD);
>>>
>>>
>>> tf1.getAllStyles().setFont(Font.createTrueTypeFont(Font.NATIVE_MAIN_LIGHT,
>>> 15f));
>>>
>>> System.out.println("Finished setting font");
>>>
>>> tf1.getAllStyles().setFgColor(0x003300);
>>>
>>> tf1.getAllStyles().setBgTransparency(255);
>>>
>>> tf1.getAllStyles().setBgColor(0xcc);
>>>
>>> tf1.getAllStyles().setAlignment(CENTER);
>>>
>>>
>>> Do you have any fix for this issue?
>>>
>>>
>>>
>>> If you are experiencing an issue please mention the full platform your
>>> issue applies to:
>>> IDE: NetBeans
>>> Desktop OS : MacOS
>>> Simulator : Iphone XR
>>> Device
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "CodenameOne Discussions" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to codenameone-discussions+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/codenameone-discussions/556ed685-57a2-434d-864c-6a89a6e83ac2%40googlegroups.com
>>> <https://groups.google.com/d/msgid/codenameone-discussions/556ed685-57a2-434d-864c-6a89a6e83ac2%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> Steve Hannah
>> Software Developer
>> Codename One
>> http://www.codenameone.com
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "CodenameOne Discussions" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to codenameone-discussions+unsubscr...@googlegroups.com.
>>
> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVEpoLAVt0S7OtKLK22VNRM1nPGog0OomUyw-R6O_k%3DjA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVEpoLAVt0S7OtKLK22VNRM1nPGog0OomUyw-R6O_k%3DjA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/CAM7EqfF%3DicM0VUL1AsxWeQ8MP-ayQXFWj-w6D8KUSohCqeNFPQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/codenameone-discussions/CAM7EqfF%3DicM0VUL1AsxWeQ8MP-ayQXFWj-w6D8KUSohCqeNFPQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXfPGtgJKV%3DsR-mgMD3AgF6tj7fcVU%3DBSSnc4dv4X4G1A%40mail.gmail.com.


Re: [codenameone-discussions] cn1-native-controls Implementation crash in UpdateStyle

2020-04-02 Thread Steve Hannah
Can you post the stack trace from Xcode?

On Thu, Apr 2, 2020 at 6:04 PM B3G B3G  wrote:

> I am trying to test NTextField in Xcode, i have already Implement a
> cn1-native-controls in my project and implementation has ben well done.  but,
> unfortunately the app crash while i trying to instantiate "NTextField". I
> extracted the generated source code & run it on Xcode this is the error log
> trace I got: (screen shot)
>
>
> my code is :
>
>
>  NTextField tf1 = new NTextField(TextField.PASSWORD);
>
>
> tf1.getAllStyles().setFont(Font.createTrueTypeFont(Font.NATIVE_MAIN_LIGHT,
> 15f));
>
> System.out.println("Finished setting font");
>
> tf1.getAllStyles().setFgColor(0x003300);
>
> tf1.getAllStyles().setBgTransparency(255);
>
> tf1.getAllStyles().setBgColor(0xcc);
>
> tf1.getAllStyles().setAlignment(CENTER);
>
>
> Do you have any fix for this issue?
>
>
>
> If you are experiencing an issue please mention the full platform your
> issue applies to:
> IDE: NetBeans
> Desktop OS : MacOS
> Simulator : Iphone XR
> Device
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/556ed685-57a2-434d-864c-6a89a6e83ac2%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/556ed685-57a2-434d-864c-6a89a6e83ac2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVEpoLAVt0S7OtKLK22VNRM1nPGog0OomUyw-R6O_k%3DjA%40mail.gmail.com.


Re: [codenameone-discussions] Re: Many issues for builds after 10 Jan 2020

2020-01-21 Thread Steve Hannah
I recommend trying to fix these issues without resorting to the
setAllowEnableLayoutOnPaint(true).  We turned that option off as default
because of noticeable graphics performance differences on devices.  In some
cases it makes sense that you should need to "revalidate" instead of
"repaint", if the container needs to be relaid out.  If you have a case
that "doesn't make sense", or that doesn't seem to work at all without the
setAllowEnableLayoutOnPaint(true), please file an issue with a
self-contained test case so we can address it.

Additionally, it is almost always better to use
revalidateWithAnimationSafety() instead of revalidate(), as this will avoid
conflicts with layout animations which may be in progress.

Best regards

Steve

On Tue, Jan 21, 2020 at 12:01 PM Ivan  wrote:

>  My app has also similar problems. I have to call revalidate() on places
> where the app previously repaint automatically and on other places I have
> to replace repaint() with revalidate() to repaint the form.
>
> But I found this post and calling setAllowEnableLayoutOnPaint(true)
> resolved my issues ... for now
> thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/6f733406-0434-4e0b-a8b5-0e52ec52ac62%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/6f733406-0434-4e0b-a8b5-0e52ec52ac62%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKX9dpWasRZUnwqzoj6%2B3-fKpmPCRn1MYCbiJc%2Btc9gzZw%40mail.gmail.com.


Re: [codenameone-discussions] Many issues for builds after 10 Jan 2020

2020-01-15 Thread Steve Hannah
I suspect all of these issues can be solved by
calling setAllowEnableLayoutOnPaint(true) on the Form/Dialog that is having
problems.

On Wed, Jan 15, 2020 at 8:42 AM Hasni Faiçal 
wrote:

> Hi All
>
> Many issues for builds after 10 Jan 2020, we have issues with RenderList
> and SideMenuCommand.
> *RenderList*: This list is always empty (blank), The content size is
> proportional to number of items added, however it shows as blank.
> *SideMenuCommand: *After opening dialog, the Menu icon disappear.
> Please advice, this is urgent, we have a deadline for production.
>
> Best.
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/00fecd0c-b156-41ce-9a96-74a9d7edf521%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/00fecd0c-b156-41ce-9a96-74a9d7edf521%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXM3GhjMzgU%2BUwxodnDV%3DC2uyiP3BvShWiq9Mq9iYzscw%40mail.gmail.com.


Re: [codenameone-discussions] Re: you broke something?

2020-01-10 Thread Steve Hannah
If you can post a test case, I'd be interested to see it.  We recently
turned off this "layout on paint" feature and added the manual override
because:
1. Turning it off caused significant performance improvements, especially
when scrolling.
2. All of my samples seemed to still work fine with it off.

Rather than rely on this flag, it would be better to identify the edge
cases that fail without it, so we can fix those.



On Fri, Jan 10, 2020 at 4:37 PM Dave Dyer  wrote:

>
> A stroll through the code revealed that the frame was never laid out, and
> adding
> this incantation to the form creation fixes the problem.
>
> setAllowEnableLayoutOnPaint(true);
>
> It may be the case that I'm especially vexed by this because my frames
> are blank (contain no widgets) from your point of view.
>
> I'd appreciate any insight into why this came up on today's build but
> never before.
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/c61d51ad-6b65-4899-8608-edfbe2125c84%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/c61d51ad-6b65-4899-8608-edfbe2125c84%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVMr4sSDOVbz8dy%3DcZfTO5uhJgJQRqeEjZDfuz%3DefTiOQ%40mail.gmail.com.


Re: [codenameone-discussions] Failed to generate Gui Source with System JAXB

2020-01-10 Thread Steve Hannah
This is related to JDK removing JAXB in JDK9.  We have some workarounds in
place to deal with this, but it appears they aren't working here.  For now,
workaround this by using JDK8.

On Fri, Jan 10, 2020 at 1:17 PM Mark Bolduc <
shop.service.assist...@gmail.com> wrote:

> If you are experiencing an issue please mention the full platform your
> issue applies to:
> IDE: NetBeans/Eclipse/IDEA Netbeans 11
> Desktop OS Windows 10 Pro
> Simulator Latest
> Device Gui Builder
>
> Added a Container using Gui Builder then got following error on compile.
>
> Attempting to generate GUI sources for
> C:\Src1\ShopServiceAsst\AstcTechMobileApp\res\guibuilder\com\astc\a3tech\A3HomePage.gui
> with System JAXB
> Failed to generate Gui Source with System JAXB.  Will attempt using
> bundled JAXB.
> C:\Src1\ShopServiceAsst\AstcTechMobileApp\build.xml:523:
> java.lang.RuntimeException: java.lang.NoClassDefFoundError:
> com/sun/xml/bind/v2/model/annotation/AnnotationReader
>  at
> com.codename1.build.client.GenerateGuiSources.generateGuiSource(GenerateGuiSources.java:294)
>  at
> com.codename1.build.client.GenerateGuiSources.generateGuiSource(GenerateGuiSources.java:246)
>  at
> com.codename1.build.client.GenerateGuiSources.execute(GenerateGuiSources.java:216)
>  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
>  at jdk.internal.reflect.GeneratedMethodAccessor2230.invoke(Unknown Source)
>  at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.base/java.lang.reflect.Method.invoke(Method.java:567)
>  at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
>  at org.apache.tools.ant.Task.perform(Task.java:350)
>  at org.apache.tools.ant.Target.execute(Target.java:449)
>  at org.apache.tools.ant.Target.performTasks(Target.java:470)
>  at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
>  at org.apache.tools.ant.Project.executeTarget(Project.java:1361)
>  at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>  at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
>  at
> org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:261)
>  at
> org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:574)
>  at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:128)
>
> Thoughts?
>
> Regards
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/9850a204-0a03-4269-87d3-20b52024ed48%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/9850a204-0a03-4269-87d3-20b52024ed48%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVZjsBJs-%3DQG3QqLANSVDWanc5LK1XqaX-yrdb0ddM70A%40mail.gmail.com.


Re: [codenameone-discussions] Gui Builder adds events at end of line in source .java code

2020-01-10 Thread Steve Hannah
Sorry, this reply was meant for your other question about JAXB.

On Fri, Jan 10, 2020 at 2:23 PM Steve Hannah 
wrote:

> This is related to JDK removing JAXB in JDK9.  We have some workarounds in
> place to deal with this, but it appears they aren't working here.  For now,
> workaround this by using JDK8.
>
> On Fri, Jan 10, 2020 at 1:23 PM Mark Bolduc <
> shop.service.assist...@gmail.com> wrote:
>
>> If you are experiencing an issue please mention the full platform your
>> issue applies to:
>> IDE: NetBeans/Eclipse/IDEA Netbeans 11
>> Desktop OS Windows 10 Pro
>> Simulator Latest
>> Device Gui Builder
>>
>> Gui Builder adds events at end of line in source .java code
>>
>> I have a class (class UpdateTitleClockA3HomePage extends Thread) defined
>> at bottom of code
>>
>> The Gui Builder appends the file with the event methods after clicking on
>> event in gui builder.
>>
>> This causes a build failure.
>>
>> The fix is simple, move the new methods within the public class
>> associated with the Gui Build.
>>
>> Regards.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "CodenameOne Discussions" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to codenameone-discussions+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/codenameone-discussions/20cd79e1-2eaa-49ea-bf37-af56bf947dde%40googlegroups.com
>> <https://groups.google.com/d/msgid/codenameone-discussions/20cd79e1-2eaa-49ea-bf37-af56bf947dde%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Steve Hannah
> Software Developer
> Codename One
> http://www.codenameone.com
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVe6T-uEnC1zCZaCpN2Z8Gg%3D6MPSxis3mKZY2uheXnrEw%40mail.gmail.com.


Re: [codenameone-discussions] Gui Builder adds events at end of line in source .java code

2020-01-10 Thread Steve Hannah
This is related to JDK removing JAXB in JDK9.  We have some workarounds in
place to deal with this, but it appears they aren't working here.  For now,
workaround this by using JDK8.

On Fri, Jan 10, 2020 at 1:23 PM Mark Bolduc <
shop.service.assist...@gmail.com> wrote:

> If you are experiencing an issue please mention the full platform your
> issue applies to:
> IDE: NetBeans/Eclipse/IDEA Netbeans 11
> Desktop OS Windows 10 Pro
> Simulator Latest
> Device Gui Builder
>
> Gui Builder adds events at end of line in source .java code
>
> I have a class (class UpdateTitleClockA3HomePage extends Thread) defined
> at bottom of code
>
> The Gui Builder appends the file with the event methods after clicking on
> event in gui builder.
>
> This causes a build failure.
>
> The fix is simple, move the new methods within the public class associated
> with the Gui Build.
>
> Regards.
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/20cd79e1-2eaa-49ea-bf37-af56bf947dde%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/20cd79e1-2eaa-49ea-bf37-af56bf947dde%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXat%2B50P6oq7Dt%3Dhj6DxXSwitxx8JyKA3j7dqtZ51DdOg%40mail.gmail.com.


Re: [codenameone-discussions] we can't swipe tabs anymore

2019-12-30 Thread Steve Hannah
This issue is already fixed, and will be included in the next update on
Friday.
https://github.com/codenameone/CodenameOne/issues/2973

On Mon, Dec 30, 2019 at 9:24 AM Yassine el malyh 
wrote:

> Hello,
>
>
> please we have a regression using tabs with  *setSwipeActivated(true);*
> therefore we can't swipe tabs anymore.
> please note that it's for an emergency situation.
>
> thank you,
> Regards
>
> Form hi = new Form("Tabs", new BorderLayout());
>  Tabs t = new Tabs();
> Label t1 = new Label("Blue");
> t1.getAllStyles().setBgColor(0xff);
> t1.getAllStyles().setBgTransparency(255);
> Label t2 = new Label("Green");
> t2.getAllStyles().setBgColor(0xff00);
> t2.getAllStyles().setBgTransparency(255);
> Label t3 = new Label("Red");
> t3.getAllStyles().setBgColor(0xff);
> t3.getAllStyles().setBgTransparency(255);
>
> t.addTab("Blue", t1);
> t.addTab("Green", t2);
> t.addTab("Red", t3);
>
> t.setSwipeActivated(true);
>
>
> hi.add(CENTER, t);
>
> hi.show();
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/8454b6a1-340f-4056-b1cc-3c1b1cf15cf6%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/8454b6a1-340f-4056-b1cc-3c1b1cf15cf6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKV62NYLzArH3He%2Bg57M3i43nq0ouOeoHzZBP4owpDscPg%40mail.gmail.com.


Re: [codenameone-discussions] Android killing background location app after awhile

2019-11-27 Thread Steve Hannah
These can be a little tricky to debug.  Especially if it takes a few hours
to occur.  Can you access the DDMS log from your device?  It will probably
offer some clues as to what it going on there.

On Wed, Nov 27, 2019 at 9:03 AM 'James' via CodenameOne Discussions <
codenameone-discussions@googlegroups.com> wrote:

> Device: OnePlus running android 10
>
> I am experiencing issues with prolonged background app tracking on Android
> 10. It seems that after a period of time, the app is killed entirely and
> the background locations stop coming in.
>
> In build hints, I have android.xpermissions set to:
>  /> />
>
> I am starting location tracking like so:
>
> CommonUtil.log("Starting Tracking");
> LocationManager.getLocationManager().setLocationListener(new
> LocationListenerImpl(), new
> LocationRequest(LocationRequest.PRIORITY_MEDIUM_ACCUARCY, 1000 * 60 * 5));
> LocationManager.getLocationManager().setBackgroundLocationListener(LocationListenerImpl.class);
>
> I am also starting geofencing like so:
>
> LocationManager.getLocationManager().addGeoFencing(GeofenceListenerImpl.class,
> revisedGeofences.get(id));
>
> Upon entering a geofence, I simply increase tracking accuracy
>
> LocationManager.getLocationManager().setLocationListener(new
> LocationListenerImpl(), new
> LocationRequest(LocationRequest.PRIORITY_HIGH_ACCUARCY, 1000 * 60 * 2));
>
> All of this works fine for the first several hours, and then it suddenly
> stops until the app is manually opened. Any thoughts?
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/99b32a00-d82d-403a-bb17-60edd8e8f61f%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/99b32a00-d82d-403a-bb17-60edd8e8f61f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXmZ7GnxP%2BTpokUHPsMk3QB73YyHynVY%3D32P3ro7tUqDw%40mail.gmail.com.


Re: [codenameone-discussions] android builds failing 11/22/2019

2019-11-22 Thread Steve Hannah
Was there error message different?

On Fri, Nov 22, 2019 at 5:46 PM Dave Dyer  wrote:

> No, doesn't help.
>
> On Friday, November 22, 2019 at 4:55:03 PM UTC-8, Steve Hannah wrote:
>>
>> Add android.playServicesVersion=12.0.0
>>
>> That should have been fixed... not sure why it’s not working, but that
>> build hint will work around it.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/b29abc1e-d3e8-42c8-80ee-44180ab00cef%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/b29abc1e-d3e8-42c8-80ee-44180ab00cef%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKU9s2H5G1PpGeDqHnGSh9yxHOYjqwiLzFSVDD99GvY-NQ%40mail.gmail.com.


Re: [codenameone-discussions] android builds failing 11/22/2019

2019-11-22 Thread Steve Hannah
Add android.playServicesVersion=12.0.0

That should have been fixed... not sure why it’s not working, but that
build hint will work around it.

On Fri, Nov 22, 2019 at 4:52 PM Dave Dyer  wrote:

>
> All of my android builds have started failing, with complaints about
> missing symbols from
> googleplayservices and depecated features from gradle.
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codenameone-discussions+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/02481016-88d8-4340-af6b-2841a165e5a7%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/02481016-88d8-4340-af6b-2841a165e5a7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXW_1DE%3DTgeX8QTnnbV1fyMct77DK8cAnrBNfDap7W_HQ%40mail.gmail.com.


  1   2   3   4   5   6   >