[codenameone-discussions] Re: iOS Build time

2018-04-08 Thread Shai Almog
Can you file an issue on that with this file?
Also please mention the source encoding that you use.

We'll try to reproduce it.

As a workaround I would suggest moving the data into JSON or properties 
file and reading that. It would probably be easier to maintain that file 
too.

-- 
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.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/4b70ac12-d43b-4874-8a97-eba19c6c7ded%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: iOS Build time

2018-04-08 Thread Dave Dyer
I do this kind of thing too, but rather than embed all the data in a 
method, I structure the whole thing
as build time static code.  They "ought to" be the same thing, but you 
might try;

static Map<>mm = new MM();
static {
 mm.put(xx,new MM());
}


-- 
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.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/9d9d737e-4bcf-488d-a536-67ad0f0b66e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] Re: iOS Build time

2018-04-08 Thread Mario Barón
Hi Shai,

thanks for your response. I've narrowed down the root of the problem. As 
you said, it was located in the BasicosBll class, specifically in a long 
method which I use to load up some extensive data to avoid using a web 
service for it. I provide the said method on the attached text file for 
your revision.  After commenting out all the values the build worked 
perfectly, please note that this piece of code has been since the beginning 
of the app's development and has worked just fine until the change to 
xcode 9.2. 

I hope this helps in finding a solution to this problem, thanks for your 
collaboration.

Cheers,

On Friday, April 6, 2018 at 8:31:24 AM UTC-5, Mario Barón wrote:
>
> Hey guys, 
>
> I'm having trouble building my iOS app, I send the build and it just stays 
> there until the build fails due to a timeout issue, this same app used to 
> build just fine last week and the build size is nothing out of the 
> ordinary, 3.5 Mb. This has been happenning to me since yesterday.
>
> I attach the error log from the build server below. I appreciate your help 
> with this matter. 
>

-- 
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.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/bae9e531-bcb3-4c3e-962a-31ecd2df674e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
public static Map cargarListadoMunicipios() {
Map municipios = new HashMap();

//municipios.put("11001", new Municipios("11001", "Bogotá", "11", 
"Bogotá", "4.6", "-74.083"));
//municipios.put("13001", new Municipios("13001", "Cartagena", "13", 
"Bolívar", "10.3997222", "-75.514"));
//municipios.put("13006", new Municipios("13006", "Achí", "13", 
"Bolívar", "8.25", "-74.5"));
//municipios.put("13030", new Municipios("13030", "Altos del Rosario", 
"13", "Bolívar", "8.794", "-74.1658333"));
//municipios.put("13042", new Municipios("13042", "Arenal", "13", 
"Bolívar", "8.467", "-73.95"));
//municipios.put("13052", new Municipios("13052", "Arjona", "13", 
"Bolívar", "10.167", "-75.333"));
//municipios.put("13062", new Municipios("13062", "Arroyohondo", "13", 
"Bolívar", "10.2497222", "-75.0113889"));
//municipios.put("13074", new Municipios("13074", "Barranco de Loba", 
"13", "Bolívar", "8.833", "-74.167"));
//municipios.put("13140", new Municipios("13140", "Calamar", "13", 
"Bolívar", "10.25", "-75"));
//municipios.put("13160", new Municipios("13160", "Cantagallo", "13", 
"Bolívar", "7.3791667", "-73.9180556"));
//municipios.put("13188", new Municipios("13188", "Cicuco", "13", 
"Bolívar", "9.417", "-74.733"));
//municipios.put("13212", new Municipios("13212", "Córdoba", "13", 
"Bolívar", "9.5", "-74.917"));
//municipios.put("13222", new Municipios("13222", "Clemencia", "13", 
"Bolívar", "10.5891667", "-75.3341667"));
//municipios.put("13244", new Municipios("13244", "El Carmen de 
Bolívar", "13", "Bolívar", "9.75", "-75.167"));
//municipios.put("13248", new Municipios("13248", "El Guamo", "13", 
"Bolívar", "10.083", "-74.917"));
//municipios.put("13268", new Municipios("13268", "El Peñon", "13", 
"Bolívar", "8.983", "-73.95"));
//municipios.put("13300", new Municipios("13300", "Hatillo de Loba", 
"13", "Bolívar", "8.9586111", "-74.0808333"));
//municipios.put("13430", new Municipios("13430", "Magangué", "13", 
"Bolívar", "9.2414156", "-74.7527587"));
//municipios.put("13433", new Municipios("13433", "Mahates", "13", 
"Bolívar", "10.235048", "-75.191297"));
//municipios.put("13440", new Municipios("13440", "Margarita", "13", 
"Bolívar", "9.14586", "-74.2932"));
//municipios.put("13442", new Municipios("13442", "María la baja", 
"13", "Bolívar", "9.983775", "-75.303139"));
//municipios.put("13458", new Municipios("13458", "Montecristo", "13", 
"Bolívar", "8.29948", "-74.47563"));
//municipios.put("13468", new Municipios("13468", "Mompós", "13", 
"Bolívar", "9.240146", "-74.424496"));
//municipios.put("13473", new Municipios("13473", "Morales", "13", 
"Bolívar", "8.27533", "-73.868176"));
//municipios.put("13490", new Municipios("13490", "Norosí", "13", 
"Bolívar", "8.528027", "-74.037018"));
//municipios.put("13549", new Municipios("13549", "Pinillos", "13", 
"Bolívar", "8.9245", "-74.47033"));
//municipios.put("13580", new Municipios("13580", "Regidor", "13", 
"Bolívar", "8.665089", "-73.822663"));
//municipios.put("13600", new 

[codenameone-discussions] Re: iOS Build time

2018-04-06 Thread Shai Almog
Hi,
What's in "com.guarumo.otacc.rules.BasicosBll"?
If you stub out the class logic does the build pass?
Can you isolate the thing that is blocking the build?

It seems like this is failing in xcode which might be a regression in xcode 
9.2 with some of the code we generate.

-- 
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.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/408658b9-e769-446f-a3d2-f30e2ba760cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.