{"action":"created","issue":{"url":"https://api.github.com/repos/bitDubai/fermat/issues/4711","repository_url":"https://api.github.com/repos/bitDubai/fermat","labels_url":"https://api.github.com/repos/bitDubai/fermat/issues/4711/labels{/name}","comments_url":"https://api.github.com/repos/bitDubai/fermat/issues/4711/comments","events_url":"https://api.github.com/repos/bitDubai/fermat/issues/4711/events","html_url":"https://github.com/bitDubai/fermat/issues/4711","id":132046850,"number":4711,"title":"Improvements at compile time - all platform","user":{"login":"nindriago","id":13187461,"avatar_url":"https://avatars.githubusercontent.com/u/13187461?v=3","gravatar_id":"","url":"https://api.github.com/users/nindriago","html_url":"https://github.com/nindriago","followers_url":"https://api.github.com/users/nindriago/followers","following_url":"https://api.github.com/users/nindriago/following{/other_user}","gists_url":"https://api.github.com/users/nindriago/gists{/gist_id}","starred_url":"https://api.github.com/users/nindriago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nindriago/subscriptions","organizations_url":"https://api.github.com/users/nindriago/orgs","repos_url":"https://api.github.com/users/nindriago/repos","events_url":"https://api.github.com/users/nindriago/events{/privacy}","received_events_url":"https://api.github.com/users/nindriago/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2016-02-08T03:51:19Z","updated_at":"2016-02-12T23:45:48Z","closed_at":null,"body":"First of all, uninstall any previous version to this, via shell:\r\n\r\n> sudo apt-get remove --auto-remove gradle\r\n\r\nPurging your config/data too\r\n\r\n> sudo apt-get purge --auto-remove gradle\r\n\r\nUpdate version installed Gradle stable last, in this case Gradle 2.10.\r\nYou can be downloaded via console with the command: \r\n\r\n> apt-get install gradle\r\n\r\n\"root permissions if required, using \r\n\r\n> sudo apt-get install gradle\r\n\r\nor \r\nhere:\r\n https://services.gradle.org/distributions/gradle-2.10-all.zip\r\n\r\n\r\n**changes made:**\r\n\r\n- Editing multiple build.gradle\r\n- uniform platform to compile.\r\n- uniform minimum platform (subject to change for when you go to release)\r\n- Uniformity of image compression library for PNG mostly.\r\n- Deleting library 'compile' com.google.android.gms: play-services: 6/5/87 '' in fermat-android-core.\r\n\r\nThese changes are not automatic, must be manually applied.\r\n**Local editing fields in IDE Android Studio 1.5.1:**\r\n\r\n- File -> Others Settings -> Default Settings.\r\n- Option: \"Build, Execution, Deployment\"\r\n- Compiler, check \"Compile independent modules in parallel (may require larger heap size)\r\n\r\n- Build process heap size (MB): default (700), change (2048) \"personal choice\".\r\n\r\n- Inside Compiler, choose Compiler and repeat: check \"Compile independent modules in parallel (may require larger heap size), then choose Android Compilers and place in the field Maximun heap size (MB): 2048 \"personal choice\".\r\n\r\n- Folder: gradle, (located in the root of the project structure, not folder (.gradle)), Document: gradle-wrapper.properties, upgrade path to: \r\n\r\n> distributionUrl = https\\ : //services.gradle.org/distributions/gradle-2.10-all.zip\r\n\r\n**Note:** \"\\\" and \":\" go together.\r\n\r\nHe added the gradle.properties:\r\n\r\n> org.gradle.configurationOnDemand = true\r\n> org.gradle.workers.max = 4\r\n\r\n**\"Observation: the number \"= 4\" depends on the number of cores that owns the PC / Laptop Computer\"**\r\nReview:\r\nLinux: Monitor System\r\nWindows: Task Manager\r\nor via Shell:\r\n\r\n> lscpu\r\n\r\n**Recommendation:** after applying all the changes, perform a reset of the IDE (Android Studio) and kill active Java process Monitor System / Task Manager.\r\n\r\n**Note:** when you're building for APK return number \"minSdkVersion #\" in all build.gradle the desired minimum version to support compatibility, multiple existed before the change, for example 16 (API 16 - Android 4.1 Jelly Beam) , while working in Development work with version uniform across build.gradle order to ensure speedy implem\r\n\r\nChanges to the IDE:\r\nclicking on root \"Fermat\" and entering:\r\nOpen Module Settings\r\n\r\n![captura de pantalla de 2016-02-08 12 48 45](https://cloud.githubusercontent.com/assets/13187461/12893370/ef6e1254-ce62-11e5-8749-00683185c395.png)\r\n\r\n- Build Tools Version\r\n- Incremental Dex\r\n- Source Compatibility\r\n- Target Compatibility\r\n\r\n**Build Tools Version:** It is important because, help improve understanding and management of images within fermat helps increase and make faster compilation preventing countless \"Warning\" generated at the time of \"clean\" or \"run \"delaying compile time.\r\n**Incremental Dex:** helps the compilation is always in \"pro\" to be scalable if there is a change or something loaded in memory will reload if you will not make any changes.\r\n\r\nMany of these options were diverse in all fermat despite being working on a single platform and A\r\n\r\n**Note:** Additional to reduce compile times recommendation, but it has limitations for computers where memory is held less than 4 GB RAM is not recommended to apply as the Swap memory is edited.\r\n\r\nYou can reduce the memory swap the recommended minimum: 10%\r\nhttp://askubuntu.com/questions/103915/how-do-i-configure-swappines"},"comment":{"url":"https://api.github.com/repos/bitDubai/fermat/issues/comments/183531178","html_url":"https://github.com/bitDubai/fermat/issues/4711#issuecomment-183531178","issue_url":"https://api.github.com/repos/bitDubai/fermat/issues/4711","id":183531178,"user":{"login":"nindriago","id":13187461,"avatar_url":"https://avatars.githubusercontent.com/u/13187461?v=3","gravatar_id":"","url":"https://api.github.com/users/nindriago","html_url":"https://github.com/nindriago","followers_url":"https://api.github.com/users/nindriago/followers","following_url":"https://api.github.com/users/nindriago/following{/other_user}","gists_url":"https://api.github.com/users/nindriago/gists{/gist_id}","starred_url":"https://api.github.com/users/nindriago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nindriago/subscriptions","organizations_url":"https://api.github.com/users/nindriago/orgs","repos_url":"https://api.github.com/users/nindriago/repos","events_url":"https://api.github.com/users/nindriago/events{/privacy}","received_events_url":"https://api.github.com/users/nindriago/received_events","type":"User","site_admin":false},"created_at":"2016-02-12T23:45:48Z","updated_at":"2016-02-12T23:45:48Z","body":"Practicamente las configuraciones las tenemos todos los que hemos descargado del repositorio principal bitDubai branch Develop, se ha realizado variada ya que no todos los Equipos que usamos son iguales y se han aplicado diferentes escenarios para realizar las pruebas correspondientes."}}