-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from adobe/dev-v3.0.0
Dev to Staging for v.3.0.0 release
- Loading branch information
Showing
185 changed files
with
15,092 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
# | ||
# Copyright 2024 Adobe. All rights reserved. | ||
# This file is licensed to you under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. You may obtain a copy | ||
# of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under | ||
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS | ||
# OF ANY KIND, either express or implied. See the License for the specific language | ||
# governing permissions and limitations under the License. | ||
# | ||
|
||
version: 2.1 | ||
orbs: | ||
# Use the CircleCI Android orb version that supports OpenJDK17 required by AGP 8.2+ | ||
android: circleci/[email protected] | ||
codecov: codecov/[email protected] | ||
|
||
jobs: | ||
build-and-unit-test: | ||
executor: | ||
name: android/android-docker | ||
resource-class: large | ||
tag: 2024.01.1 | ||
|
||
steps: | ||
- checkout | ||
|
||
- run: | ||
name: Check format | ||
command: make checkformat | ||
|
||
- run: | ||
name: Check style | ||
command: make checkstyle | ||
|
||
- run: | ||
name: Javadoc | ||
command: make javadoc | ||
|
||
- store_artifacts: | ||
path: code/notificationbuilder/build/docs/javadoc | ||
|
||
- run: | ||
name: Assemble phone | ||
command: make assemble-phone | ||
|
||
- run: | ||
name: Build Jitpack Library | ||
command: make notificationbuilder-publish-maven-local-jitpack | ||
|
||
- run: | ||
name: Build Test app | ||
command: make assemble-app | ||
|
||
- run: | ||
name: Run Unit tests | ||
command: make unit-test-coverage | ||
|
||
- store_test_results: | ||
path: code/notificationbuilder/build/test-results/testPhoneDebugUnitTest | ||
|
||
- codecov/upload: | ||
file: code/notificationbuilder/build/reports/coverage/test/phone/debug/report.xml | ||
flags: unit-tests | ||
|
||
|
||
functional-test: | ||
executor: | ||
name: android/android-machine | ||
resource-class: large | ||
tag: 2024.01.1 | ||
|
||
steps: | ||
- checkout | ||
|
||
- android/create-avd: | ||
avd-name: myavd | ||
install: true | ||
system-image: system-images;android-29;default;x86 | ||
|
||
- android/start-emulator: | ||
avd-name: myavd | ||
no-window: true | ||
post-emulator-launch-assemble-command: "" | ||
restore-gradle-cache-prefix: v1a | ||
|
||
- run: | ||
name: Run Functional tests | ||
command: | | ||
make functional-test-coverage | ||
- codecov/upload: | ||
file: code/core/build/reports/coverage/androidTest/phone/connected/debug/report.xml | ||
flags: functional-tests | ||
|
||
- android/save-gradle-cache: | ||
cache-prefix: v1a | ||
|
||
workflows: | ||
build: | ||
jobs: | ||
- build-and-unit-test | ||
# - functional-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Contributing | ||
|
||
Thanks for choosing to contribute! | ||
|
||
The following are a set of guidelines to follow when contributing to this project. | ||
|
||
## Code Of Conduct | ||
|
||
This project adheres to the Adobe [code of conduct](../CODE_OF_CONDUCT.md). By participating, | ||
you are expected to uphold this code. Please report unacceptable behavior to | ||
[[email protected]](mailto:[email protected]). | ||
|
||
## Have A Question? | ||
|
||
Start by filing an issue. The existing committers on this project work to reach | ||
consensus around project direction and issue solutions within issue threads | ||
(when appropriate). | ||
|
||
## Contributor License Agreement | ||
|
||
All third-party contributions to this project must be accompanied by a signed contributor | ||
license agreement. This gives Adobe permission to redistribute your contributions | ||
as part of the project. [Sign our CLA](http://opensource.adobe.com/cla.html). You | ||
only need to submit an Adobe CLA one time, so if you have submitted one previously, | ||
you are good to go! | ||
|
||
## Code Reviews | ||
|
||
All submissions should come in the form of pull requests and need to be reviewed | ||
by project committers. Read [GitHub's pull request documentation](https://help.github.com/articles/about-pull-requests/) | ||
for more information on sending pull requests. | ||
|
||
Lastly, please follow the [pull request template](PULL_REQUEST_TEMPLATE.md) when | ||
submitting a pull request! | ||
|
||
## Style Guide | ||
|
||
Code cleanliness and consistency is important. Please review and follow our code | ||
[Style Guide](../Documentation/Contributing/StyleGuide.md) when contributing. | ||
|
||
## From Contributor To Committer | ||
|
||
We love contributions from our community! If you'd like to go a step beyond contributor | ||
and become a committer with full write access and a say in the project, you must | ||
be invited to the project. The existing committers employ an internal nomination | ||
process that must reach lazy consensus (silence is approval) before invitations | ||
are issued. If you feel you are qualified and want to get more deeply involved, | ||
feel free to reach out to existing committers to have a conversation about that. | ||
|
||
## Security Issues | ||
|
||
Security issues shouldn't be reported on this issue tracker. Instead, [file an issue to our security experts](https://helpx.adobe.com/security/alertus.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!--- STOP! Before you open an issue please search this repository's issues to see if it has already been reported. This helps reduce duplicate issues from being created. --> | ||
<!--- SECURITY DISCLOSURE: If this is a security disclosure please follow the guidelines in CONTRIBUTING.md. This helps keep folks from accidentally releasing vulnerabilities before the maintainers get a chance to fix the issue. --> | ||
|
||
### Expected Behaviour | ||
|
||
### Actual Behaviour | ||
|
||
### Reproduce Scenario (including but not limited to) | ||
|
||
#### Steps to Reproduce | ||
|
||
#### Platform and Version | ||
|
||
#### Sample Code that illustrates the problem | ||
|
||
#### Logs taken while reproducing problem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<!--- Provide a general summary of your changes in the Title above --> | ||
|
||
## Description | ||
|
||
<!--- Describe your changes in detail --> | ||
|
||
## Related Issue | ||
|
||
<!--- This project only accepts pull requests related to open issues --> | ||
<!--- If suggesting a new feature or change, please discuss it in an issue first --> | ||
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce --> | ||
<!--- Please link to the issue here: --> | ||
|
||
## Motivation and Context | ||
|
||
<!--- Why is this change required? What problem does it solve? --> | ||
|
||
## How Has This Been Tested? | ||
|
||
<!--- Please describe in detail how you tested your changes. --> | ||
<!--- Include details of your testing environment, and the tests you ran to --> | ||
<!--- see how your change affects other areas of the code, etc. --> | ||
|
||
## Screenshots (if appropriate): | ||
|
||
## Types of changes | ||
|
||
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> | ||
|
||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to change) | ||
|
||
## Checklist: | ||
|
||
<!--- Go over all the following points, and put an `x` in all the boxes that apply. --> | ||
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> | ||
|
||
- [ ] I have signed the [Adobe Open Source CLA](http://opensource.adobe.com/cla.html). | ||
- [ ] My code follows the code style of this project. | ||
- [ ] My change requires a change to the documentation. | ||
- [ ] I have updated the documentation accordingly. | ||
- [ ] I have read the **CONTRIBUTING** document. | ||
- [ ] I have added tests to cover my changes. | ||
- [ ] All new and existing tests passed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# | ||
# Copyright 2024 Adobe. All rights reserved. | ||
# This file is licensed to you under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. You may obtain a copy | ||
# of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under | ||
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS | ||
# OF ANY KIND, either express or implied. See the License for the specific language | ||
# governing permissions and limitations under the License. | ||
# | ||
|
||
template: | | ||
## What’s Changed | ||
$CHANGES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
# | ||
# Copyright 2024 Adobe. All rights reserved. | ||
# This file is licensed to you under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. You may obtain a copy | ||
# of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under | ||
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS | ||
# OF ANY KIND, either express or implied. See the License for the specific language | ||
# governing permissions and limitations under the License. | ||
# | ||
|
||
name: Publish Release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
component: | ||
type: choice | ||
description: UI Component to release | ||
options: | ||
- notificationbuilder | ||
|
||
tag: | ||
description: 'tag/version' | ||
required: true | ||
|
||
action_tag: | ||
description: 'Create tag? ("no" to skip)' | ||
required: true | ||
default: 'yes' | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
|
||
- name: Cache Gradle packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: ${{ runner.os }}-gradle | ||
|
||
- name: Verify version | ||
run: | | ||
set -eo pipefail | ||
echo Release version: ${{ github.event.inputs.tag }} | ||
(./scripts/version.sh -n ${{ github.event.inputs.component }} -v ${{ github.event.inputs.tag }}) | ||
- name: Create GH Release | ||
id: create_release | ||
uses: release-drafter/release-drafter@v5 | ||
if: ${{ github.event.inputs.action_tag == 'yes' }} | ||
with: | ||
name: v${{ github.event.inputs.tag }}-${{ github.event.inputs.component }} | ||
tag: v${{ github.event.inputs.tag }}-${{ github.event.inputs.component }} | ||
version: v${{ github.event.inputs.tag }}-${{ github.event.inputs.component }} | ||
publish: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Import GPG key | ||
env: | ||
GPG_SECRET_KEYS: ${{ secrets.GPG_SECRET_KEYS }} | ||
GPG_OWNERTRUST: ${{ secrets.GPG_OWNERTRUST }} | ||
run: | | ||
echo $GPG_SECRET_KEYS | base64 --decode | gpg --import --no-tty --batch --yes | ||
echo $GPG_OWNERTRUST | base64 --decode | gpg --import-ownertrust --no-tty --batch --yes | ||
- name: Publish to Maven Central Repository | ||
run: make ${{ github.event.inputs.component }}-publish | ||
env: | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# | ||
# Copyright 2024 Adobe. All rights reserved. | ||
# This file is licensed to you under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. You may obtain a copy | ||
# of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under | ||
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS | ||
# OF ANY KIND, either express or implied. See the License for the specific language | ||
# governing permissions and limitations under the License. | ||
# | ||
|
||
name: Publish Snapshot | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release_notificationbuilder: | ||
required: false | ||
type: boolean | ||
default: false | ||
description: Release Notification Builder | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 17 | ||
|
||
- name: Cache Gradle packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: ${{ runner.os }}-gradle | ||
|
||
- name: Import GPG key | ||
env: | ||
GPG_SECRET_KEYS: ${{ secrets.GPG_SECRET_KEYS }} | ||
GPG_OWNERTRUST: ${{ secrets.GPG_OWNERTRUST }} | ||
run: | | ||
echo $GPG_SECRET_KEYS | base64 --decode | gpg --import --no-tty --batch --yes | ||
echo $GPG_OWNERTRUST | base64 --decode | gpg --import-ownertrust --no-tty --batch --yes | ||
- name: Publish NotificationBuilder to Maven Snapshot Repository | ||
if: ${{ inputs.release_notificationbuilder }} | ||
run: make notificationbuilder-publish-snapshot | ||
env: | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} |
Oops, something went wrong.