Skip to content

Commit

Permalink
Merge branch 'main' into snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
bentrengrove committed May 8, 2023
2 parents ddb1a47 + 8373961 commit 428a8f3
Show file tree
Hide file tree
Showing 126 changed files with 2,662 additions and 1,306 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-snapshot.yml
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17

- name: Decrypt secrets
run: release/signing-setup.sh ${{ secrets.ENCRYPT_KEY }}
Expand All @@ -52,7 +52,7 @@ jobs:
./gradlew --scan --stacktrace \
spotlessCheck \
assemble \
metalavaCheckCompatibility \
metalavaCheckCompatibilityRelease \
lintDebug
- name: Unit Tests
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
- name: set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17

- name: Decrypt secrets
run: release/signing-setup.sh ${{ secrets.ENCRYPT_KEY }}
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:
- name: set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17

- name: Decrypt secrets
run: release/signing-setup.sh ${{ secrets.ENCRYPT_KEY }}
Expand Down
64 changes: 22 additions & 42 deletions .github/workflows/build.yml
Expand Up @@ -8,6 +8,7 @@ on:
- compose-1.1
- compose-1.2
- compose-1.3
- compose-1.4
paths-ignore:
- '**.md'
pull_request:
Expand All @@ -18,7 +19,7 @@ jobs:
if: "!contains(github.event.head_commit.message, 'skip ci')"

runs-on: ubuntu-latest
timeout-minutes: 30
timeout-minutes: 45

steps:
- uses: actions/checkout@v2
Expand All @@ -29,31 +30,24 @@ jobs:
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

- name: set up JDK
uses: actions/setup-java@v1
- name: Setup java
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
java-version: 17

- name: Decrypt secrets
run: release/signing-setup.sh ${{ secrets.ENCRYPT_KEY }}

- name: Generate cache key
run: ./checksum.sh checksum.txt

- uses: actions/cache@v2
with:
path: |
~/.gradle/caches/modules-*
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
key: gradle-${{ hashFiles('checksum.txt') }}

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Build
run: |
./gradlew --scan --stacktrace \
spotlessCheck \
assemble \
metalavaCheckCompatibility \
metalavaCheckCompatibilityRelease \
lintDebug
- name: Unit Tests
Expand Down Expand Up @@ -100,24 +94,17 @@ jobs:
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

- name: set up JDK
uses: actions/setup-java@v1
- name: Setup java
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
java-version: 17

- name: Decrypt secrets
run: release/signing-setup.sh ${{ secrets.ENCRYPT_KEY }}

- name: Generate cache key
run: ./checksum.sh checksum.txt

- uses: actions/cache@v3
with:
path: |
~/.gradle/caches/modules-*
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
key: gradle-${{ hashFiles('checksum.txt') }}
- name: Setup Gradle
uses: gradle/gradle-build-action@v2

# Determine what emulator image to use. We run all API 28+ emulators using
# the google_apis image
Expand Down Expand Up @@ -185,24 +172,17 @@ jobs:
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

- name: set up JDK
uses: actions/setup-java@v1
- name: Setup java
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
java-version: 17

- name: Decrypt secrets
run: release/signing-setup.sh ${{ secrets.ENCRYPT_KEY }}

- name: Generate cache key
run: ./checksum.sh checksum.txt

- uses: actions/cache@v2
with:
path: |
~/.gradle/caches/modules-*
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
key: gradle-${{ hashFiles('checksum.txt') }}
- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Deploy to Sonatype
run: ./gradlew publish --no-parallel --stacktrace
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/device-tests.yml
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 17

- name: Decrypt secrets
run: release/signing-setup.sh ${{ secrets.ENCRYPT_KEY }}
Expand Down
24 changes: 8 additions & 16 deletions .github/workflows/publish-docs.yml
Expand Up @@ -18,32 +18,24 @@ jobs:
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

- name: set up JDK
uses: actions/setup-java@v1
- name: Setup java
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
java-version: 17

- name: Generate cache key
run: ./checksum.sh checksum.txt

- uses: actions/cache@v2
with:
path: |
~/.gradle/caches/modules-*
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
key: gradle-${{ hashFiles('checksum.txt') }}
- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install mkdocs
python3 -m pip install mkdocs-material
python3 -m pip install mkdocs-material=="9.*"
- name: Generate docs
run: ./generate_docs.sh
Expand Down
10 changes: 10 additions & 0 deletions CONTRIBUTING.md
Expand Up @@ -29,3 +29,13 @@ All submissions, including submissions by project members, require review. We
use GitHub pull requests for this purpose. Consult
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
information on using pull requests.

## API Changes

If you are changing any public APIs, you need to run `./gradlew metalavaGenerateSignatureRelease` which will
update the API signatures.

## Formatting

To apply formatting, we use spotless. Run `./gradlew :pager:spotlessApply` to format the code according
to the spec.
15 changes: 9 additions & 6 deletions README.md
Expand Up @@ -24,7 +24,10 @@ Each [release](https://github.com/google/accompanist/releases) outlines what ver
<td>Compose UI 1.3 (1.3.x)</td><td><img alt="Maven Central" src="https://img.shields.io/maven-central/v/com.google.accompanist/accompanist-permissions?versionPrefix=0.28"></td>
</tr>
<tr>
<td>Compose UI 1.4 (1.4.x)</td><td><img alt="Maven Central" src="https://img.shields.io/maven-central/v/com.google.accompanist/accompanist-permissions"></td>
<td>Compose UI 1.4 (1.4.x)</td><td><img alt="Maven Central" src="https://img.shields.io/maven-central/v/com.google.accompanist/accompanist-permissions?versionPrefix=0.30"></td>
</tr>
<tr>
<td>Compose UI 1.5 (1.5.x)</td><td><img alt="Maven Central" src="https://img.shields.io/maven-central/v/com.google.accompanist/accompanist-permissions"></td>
</tr>
</table>

Expand All @@ -46,17 +49,14 @@ A library that enables the reuse of [MDC-Android][mdc] Material 2 XML themes, fo
### 🎨 [Material 3 Theme Adapter](./themeadapter-material3/)
A library that enables the reuse of [MDC-Android][mdc] Material 3 XML themes, for theming in Jetpack Compose.

### 📖 [Pager](./pager/)
A library that provides utilities for building paginated layouts in Jetpack Compose, similar to Android's [ViewPager][viewpager].

### 📫 [Permissions](./permissions/)
A library that provides [Android runtime permissions][runtimepermissions] support for Jetpack Compose.

### [Placeholder](./placeholder/)
A library that provides easy-to-use modifiers for displaying a placeholder UI while content is loading.

### 🌊 [Flow Layouts](./flowlayout/)
A library that adds Flexbox-like layout components to Jetpack Compose.
### 🌊 [Flow Layouts](./flowlayout/) (Deprecated)
See our [Migration Guide](https://google.github.io/accompanist/flowlayout/) for migrating to FlowLayout in Compose.

### 🧭✨[Navigation-Animation](./navigation-animation/)
A library which provides [Compose Animation](https://developer.android.com/jetpack/compose/animation) support for Jetpack Navigation Compose.
Expand Down Expand Up @@ -85,6 +85,9 @@ See our [Migration Guide](https://google.github.io/accompanist/swiperefresh/) fo
### 🎨 [AppCompat Theme Adapter](./appcompat-theme/) (Deprecated)
See our [Migration Guide](https://google.github.io/accompanist/appcompat-theme/) for migrating to the new artifact in Accompanist.

### 📖 [Pager](./pager/) (Deprecated)
See our [Migration Guide](https://google.github.io/accompanist/pager/) for migrating to Pager in Compose.

---

## Future?
Expand Down
2 changes: 1 addition & 1 deletion adaptive/api/current.api
Expand Up @@ -5,7 +5,7 @@ package com.google.accompanist.adaptive {
method @androidx.compose.runtime.Composable public static java.util.List<androidx.window.layout.DisplayFeature> calculateDisplayFeatures(android.app.Activity activity);
}

@kotlin.jvm.JvmInline public final class FoldAwareConfiguration {
@kotlin.jvm.JvmInline public final value class FoldAwareConfiguration {
field public static final com.google.accompanist.adaptive.FoldAwareConfiguration.Companion Companion;
}

Expand Down
125 changes: 0 additions & 125 deletions adaptive/build.gradle

This file was deleted.

0 comments on commit 428a8f3

Please sign in to comment.