Skip to content

Conversation

@amstone326
Copy link
Contributor

@amstone326 amstone326 commented Jan 4, 2017

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/ to commcare-android/app/build/outputs/apk/. Secondly, it changes what the generated .apks themselves are actually called, from commcare-android-commcare-release.apk to app-commcare-release.apk. Once this PR is merged, the following changes will need to be made to account for this:

  1. For the commcare-android and consumer-apps-builder jobs on jenkins, change the "Files to archive" paths to match the changes above.
  2. Once the release portion 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).

@amstone326 amstone326 added this to the commcare_2.33 milestone Jan 4, 2017
@amstone326
Copy link
Contributor Author

@damagatchi retest this please.

@amstone326
Copy link
Contributor Author

@damagatchi retest this please

@@ -16,7 +16,6 @@ commcare-odk-test/gen/*
*.swp
*.iml
*.db
Copy link
Contributor Author

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.

@philomates philomates merged commit a063788 into master Jan 5, 2017
@philomates philomates deleted the reconfigure-gradle branch January 5, 2017 16:48
@amstone326
Copy link
Contributor Author

amstone326 commented Jan 5, 2017

(fyi that I've now done step 1 above. 2 will wait until we cut the 2.33 release)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants