health-samples icon indicating copy to clipboard operation
health-samples copied to clipboard

Update to match beta release

Open ithinkihaveacat opened this issue 2 years ago • 0 comments

Incomplete, do not merge!

@garanj perhaps you could have a light look over this and see if there are any larger/architectural things that could be improved? There's some obvious things that need to be changed before the actual release, like the path to the beta location.

FYI @sarahamilton @breanatate

To build from AOSP:

  1. Download source code as described here.
  2. Change into the frameworks/support directory.
  3. Run ./gradlew createArchive.
  4. This should create ../../out/androidx/build/support_repo (i.e. in the out subdirectory of androidx-main).
  5. To create zip of maven artifacts: a. cd out/androidx/build/support_repo a. zip -r ~/m2repo androidx/health/health-services-client
  6. Unzip this file into e.g. /tmp: a. cd /tmp a. unzip ~/m2repo
  7. Add this directory to the maven { url … } stanza in build.gradle, e.g.:
allprojects {
  repositories {
    maven { url("/tmp/m2repo") }
    google()
    mavenCentral()
  }
}

(To resync to head, run repo sync.)

ithinkihaveacat avatar Jun 22 '22 16:06 ithinkihaveacat