PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
Windev Mobile Generating speed
Windev Mobile Generating speed
Started by Allard, Jun., 24 2017 3:35 PM - 5 replies
Connect yourself…
Allard
#1
Posted on June, 24 2017 - 3:35 PM
Hi,
Yesterday I made my first mobile App !! Yep and I put it on my Android phone and it worked :spos:.
I have a question though:
It takes quite some time for the gradle to finnish.
Generating the app is like 10-15 sec.
The gradle stuff takes 30 - 40 seconds
Then adding the app to the phone takes like 6 seconds
Is this normal behaviour. When I view the pcsoft video they seem to almoast instanly have the app on a phone ?
regards
Allard
Report
0
0
Ruben Sanchez Peña
#2
Posted on June, 24 2017 - 4:20 PM
Hi. You can tuneup the Gradle process. The first app generation is slow, but later the generation is only 15-20 sg.
Currenly in using Gradle 3.5 because verion 4.0 give me errors with WM22
You can create a file C:\Users\\.gradle\gradle.properties like this content:
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Settings specified in this file will override any Gradle settings
# configured through the IDE.
# For more details on how to configure your build environment visit
#
http://www.gradle.org/docs/current/userguide/build_environment.html
# The Gradle daemon aims to improve the startup and execution time of Gradle.
# When set to true the Gradle daemon is to run the build.
# TODO: disable daemon on CI, since builds should be clean and reliable on servers
org.gradle.daemon=true
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
org.gradle.jvmargs=-Xms1g -Xmx6g -XX:MaxPermSize=1g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
#
http://www.gradle.org/docs/current/userguide/multi_project_builds.html…
org.gradle.parallel=true
# Enables new incubating mode that makes Gradle selective when configuring projects.
# Only relevant projects are configured which results in faster builds for large multi-projects.
#
http://www.gradle.org/docs/current/userguide/multi_project_builds.html…
#org.gradle.configureondemand=false
org.gradle.java.home=D:\\Program Files\\Java\\jdk1.8.0_131
org.gradle.workers.max=16
com.android.build.gradle.overridePathCheck=true
com.android.build.gradle.overrideVersionCheck=true
#startParameter.offline=false
Rubén
Report
0
0
ccc2
#3
Posted on June, 24 2017 - 8:05 PM
in case nobody notice. the main reasons for it slow is because the output file (apk) grow triple in wm22.
my app from 4mb in wm21 grow to 13mb in wm22.
I using same latest version of gradle and android sdk on wm21 and wm22.
if you want to test , in this post will tell you what need to change in order to use latest gradle on wm21
http://27130.foren.mysnip.de/read.php…
you no need todo any setting on wm22.
you will notice wm21 faster alot than wm22, but actually they are same if you compare file size and time
i notice this on pre release version. the final version still same . I guess we will just have to used to it.
Report
0
0
André Labuschagné
#4
Posted on June, 26 2017 - 1:54 AM
Hi ccc2
You may find that it is including the H file system by default. Check that out and remove it. There has been discussion about this elsewhere.
Cheers
André
Report
0
0
ccc2
#5
Posted on June, 26 2017 - 9:18 AM
Quote
André Labuschagné
Hi ccc2
You may find that it is including the H file system by default. Check that out and remove it. There has been discussion about this elsewhere.
Cheers
André
really ?, how to uncheck . I don't see the option in WM22 .
Report
0
0
Christo
#6
Posted on June, 26 2017 - 10:10 AM
Hi Guys
The size of the application relates to the "com" library,
From v22 functions like httprequest uses the "com" library, and is therefore included in the .apk, which results in the increased apk size, a new project, 1 window , 1 httprequest resulted on a 10MB .apk.
Kind Regards
Christo
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text