-
-
Notifications
You must be signed in to change notification settings - Fork 45
Restructure gradle files #1612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restructure gradle files #1612
Conversation
|
@damagatchi retest this please. |
|
@damagatchi retest this please |
…ilures on jenkins
… test failures on jenkins" This reverts commit 1a2bec2.
| @@ -16,7 +16,6 @@ commcare-odk-test/gen/* | |||
| *.swp | |||
| *.iml | |||
| *.db | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to remove *.properties and **/.settings/ from .gitignore in order for these 2 files within the unit-tests directory to be properly recognized as having moved: https://github.com/dimagi/commcare-android/blob/master/unit-tests/.settings/org.eclipse.jdt.core.prefs and https://github.com/dimagi/commcare-android/blob/master/unit-tests/resources/robolectric.properties. I'm not sure how they were previously being recognized with these lines in there.
|
(fyi that I've now done step 1 above. 2 will wait until we cut the 2.33 release) |
Restructuring our gradle setup to conform to the expected format as per: https://developer.android.com/studio/build/index.html. This basically involved moving the majority of the content in our existing top-level build.gradle file into a new build.gradle file at the app/ level.
IMPORTANT -- This structure changes 2 things about the generation of .apks. First, it changes the path at which generated .apks are stored, from
commcare-android/build/outputs/apk/tocommcare-android/app/build/outputs/apk/. Secondly, it changes what the generated .apks themselves are actually called, fromcommcare-android-commcare-release.apktoapp-commcare-release.apk. Once this PR is merged, the following changes will need to be made to account for this:releaseportion of the deploy scripts is run for 2.33, make the same changes for the commcare-andriod-2.33 job (since the deploy script generates the new job by copying the job for the previous version, this step needs to wait until then).