{"action":"closed","issue":{"url":"https://api.github.com/repos/simpligility/android-maven-plugin/issues/553","labels_url":"https://api.github.com/repos/simpligility/android-maven-plugin/issues/553/labels{/name}","comments_url":"https://api.github.com/repos/simpligility/android-maven-plugin/issues/553/comments","events_url":"https://api.github.com/repos/simpligility/android-maven-plugin/issues/553/events","html_url":"https://github.com/simpligility/android-maven-plugin/issues/553","id":53605423,"number":553,"title":"aar BuildConfig values not generated in release","user":{"login":"kkalisz","id":5392781,"avatar_url":"https://avatars.githubusercontent.com/u/5392781?v=3","gravatar_id":"","url":"https://api.github.com/users/kkalisz","html_url":"https://github.com/kkalisz","followers_url":"https://api.github.com/users/kkalisz/followers","following_url":"https://api.github.com/users/kkalisz/following{/other_user}","gists_url":"https://api.github.com/users/kkalisz/gists{/gist_id}","starred_url":"https://api.github.com/users/kkalisz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkalisz/subscriptions","organizations_url":"https://api.github.com/users/kkalisz/orgs","repos_url":"https://api.github.com/users/kkalisz/repos","events_url":"https://api.github.com/users/kkalisz/events{/privacy}","received_events_url":"https://api.github.com/users/kkalisz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-07T07:28:39Z","updated_at":"2015-01-07T12:01:39Z","closed_at":"2015-01-07T12:01:39Z","body":"When we use aar libraries, in most cases they have BuildConfig.DEBUG == true (logs etc), \r\nIf we build release apk, BuildConfig files for libraries are not generated (they exists and generation is skipped).\r\nAs result all BuildConfig files except application BuildConfig have DEBUG value set to true, now\r\nstatement if( BuildConfig.DEBUG ){} have only sense in application projects.\r\nI think that expected behaviour would be generating new BuildConfig files for all artifacts in release build. Am I right !?\r\n\r\n<pre>\r\nOld Way ( ant, apklibs )\r\nDEV\r\nLibA BuildConfig.DEBUG = true\r\nLibB BuildConfig.DEBUG = true\r\nMyApplication BuildConfig.DEBUG = true\r\n\r\nRELEASE\r\nLibA BuildConfig.DEBUG = false\r\nLibB BuildConfig.DEBUG = false\r\nMyApplication BuildConfig.DEBUG = false\r\n\r\nNew Way ( aar )\r\nDEV\r\nLibA BuildConfig.DEBUG = true\r\nLibB BuildConfig.DEBUG = true\r\nMyApplication BuildConfig.DEBUG = true\r\n\r\nRELEASE\r\nLibA BuildConfig.DEBUG = true\r\nLibB BuildConfig.DEBUG = true\r\nMyApplication BuildConfig.DEBUG = false\r\n</pre>"}}