-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: init implementation of flutter sdk
- Loading branch information
1 parent
bc29173
commit 927af3b
Showing
103 changed files
with
3,990 additions
and
7 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,88 @@ | ||
name: Bug Report | ||
description: Create a report to help us improve | ||
body: | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Describe the bug | ||
description: A clear and concise description of what the bug is. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: repro | ||
attributes: | ||
label: Steps To Reproduce | ||
description: How do you trigger this bug? Please walk us through it step by step. | ||
value: | | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
render: dart | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: behavior | ||
attributes: | ||
label: Expected behavior | ||
description: A clear and concise description of what you expected to happen. | ||
validations: | ||
required: true | ||
- type: input | ||
id: clickstream-version | ||
attributes: | ||
label: ClickstreamAnalytic Flutter SDK Version | ||
placeholder: e.g. 1.0.0 | ||
validations: | ||
required: true | ||
- type: input | ||
id: flutter-version | ||
attributes: | ||
label: Flutter version | ||
placeholder: e.g. 3.3.0 | ||
validations: | ||
required: true | ||
- type: input | ||
id: platform | ||
attributes: | ||
label: The platform of the bug | ||
placeholder: | | ||
- e.g. Android/iOS/All | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: logs | ||
attributes: | ||
label: Relevant log output | ||
description: >- | ||
Include any relevant log output | ||
value: | | ||
<details> | ||
<summary>Log Messages</summary> | ||
``` | ||
INSERT LOG MESSAGES HERE | ||
``` | ||
</details> | ||
render: shell | ||
- type: dropdown | ||
id: regression | ||
attributes: | ||
label: Is this a regression? | ||
multiple: false | ||
options: | ||
- "Yes" | ||
- "No" | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: regression-info | ||
attributes: | ||
label: Regression additional context | ||
placeholder: If it was a regression provide the versions used before and after the upgrade. | ||
- type: textarea | ||
id: context | ||
attributes: | ||
label: Additional context | ||
description: Add any other context about the problem here. |
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,32 @@ | ||
name: Feature request | ||
description: Suggest an idea for this project | ||
body: | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Is your feature request related to a problem? Please describe. | ||
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: proposal | ||
attributes: | ||
label: Describe the solution you'd like | ||
description: A clear and concise description of what you want to happen. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: alternatives | ||
attributes: | ||
label: Describe alternatives you've considered | ||
description: A clear and concise description of any alternative solutions or features you've considered. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: context | ||
attributes: | ||
label: Additional context | ||
description: Add any other context about the problem here. |
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 @@ | ||
## Issue \# | ||
<!-- If applicable, please link to issue(s) this change addresses --> | ||
|
||
## Description | ||
<!-- Why is this change required? What problem does it solve? --> | ||
|
||
## General Checklist | ||
<!-- Check or cross out if not relevant --> | ||
|
||
- [ ] Added new tests to cover change, if needed | ||
- [ ] Security oriented best practices and standards are followed (e.g. using input sanitization, principle of least privilege, etc) | ||
- [ ] Documentation update for the change if required | ||
- [ ] PR title conforms to conventional commit style | ||
- [ ] If breaking change, documentation/changelog update with migration instructions | ||
|
||
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. |
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,11 @@ | ||
changelog: | ||
categories: | ||
- title: Feature | ||
labels: | ||
- enhancement | ||
- title: Fix | ||
labels: | ||
- bug | ||
- title: Other Changes | ||
labels: | ||
- "*" |
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,25 @@ | ||
name: Flutter SDK Build for Android | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build-android: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'corretto' | ||
java-version: '11' | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
- name: Run build apk | ||
run: | | ||
flutter pub get | ||
cd example | ||
flutter build apk |
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,25 @@ | ||
name: Flutter SDK Build for iOS | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build-ios: | ||
runs-on: macos-13-xl | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Initialize submodules | ||
run: | | ||
git submodule update --init | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
architecture: x64 | ||
- name: Run build ios | ||
run: | | ||
flutter pub get | ||
cd example | ||
flutter build ios --release --no-codesign |
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,23 @@ | ||
name: Flutter SDK Lint | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
code-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
- run: flutter --version | ||
- name: Run install packages | ||
run: flutter pub get | ||
- name: Run code format | ||
run: dart format . --set-exit-if-changed | ||
- name: Run code lint | ||
run: flutter analyze --fatal-warnings |
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,38 @@ | ||
name: Release Next Version | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release_tag: | ||
description: 'Release Tag' | ||
required: true | ||
type: string | ||
env: | ||
NEW_VERSION: ${{ github.event.inputs.release_tag }} | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: main | ||
fetch-depth: 0 | ||
token: ${{ secrets.PROJECT_TOKEN }} | ||
- name: Modify for next release | ||
run: | | ||
chmod +x release.sh | ||
./release.sh ${{ env.NEW_VERSION }} | ||
git diff | ||
git config user.name '${{ vars.USER_NAME }}' | ||
git config user.email '${{ vars.USER_EMAIL }}' | ||
git add . | ||
git commit -m 'release: clickstream Flutter ${{ env.NEW_VERSION }}' | ||
git push | ||
git tag v${{ env.NEW_VERSION }} | ||
git push origin v${{ env.NEW_VERSION }} | ||
- name: Create GitHub release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
name: "Clickstream Flutter ${{ env.NEW_VERSION }}" | ||
tag_name: "v${{ env.NEW_VERSION }}" | ||
prerelease: true | ||
generate_release_notes: true |
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,25 @@ | ||
name: Flutter SDK Test | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
code-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
- name: Run test | ||
run: | | ||
flutter pub get | ||
flutter test --coverage --reporter github | ||
- name: Upload Test Report | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
name: report | ||
files: coverage/lcov.info |
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,24 @@ | ||
name: Pull Request Title Lint | ||
|
||
on: | ||
pull_request: | ||
branches: [ "*" ] | ||
|
||
jobs: | ||
title-lint: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
types: |- | ||
feat | ||
fix | ||
chore | ||
docs | ||
ci | ||
tests | ||
requireScope: false |
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,31 @@ | ||
# Miscellaneous | ||
*.class | ||
*.log | ||
*.pyc | ||
*.swp | ||
.DS_Store | ||
.atom/ | ||
.buildlog/ | ||
.history | ||
.svn/ | ||
migrate_working_dir/ | ||
|
||
# IntelliJ related | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
# The .vscode folder contains launch configuration and tasks you configure in | ||
# VS Code which you may wish to be included in version control, so this line | ||
# is commented out by default. | ||
#.vscode/ | ||
|
||
# Flutter/Dart/Pub related | ||
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. | ||
/pubspec.lock | ||
**/doc/api/ | ||
.dart_tool/ | ||
.packages | ||
build/ | ||
coverage/ |
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,3 @@ | ||
[submodule "ios/Clickstream"] | ||
path = ios/Clickstream | ||
url = https://github.com/awslabs/clickstream-swift |
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,33 @@ | ||
# This file tracks properties of this Flutter project. | ||
# Used by Flutter tool to assess capabilities and perform upgrades etc. | ||
# | ||
# This file should be version controlled and should not be manually edited. | ||
|
||
version: | ||
revision: "ead455963c12b453cdb2358cad34969c76daf180" | ||
channel: "stable" | ||
|
||
project_type: plugin | ||
|
||
# Tracks metadata for the flutter migrate command | ||
migration: | ||
platforms: | ||
- platform: root | ||
create_revision: ead455963c12b453cdb2358cad34969c76daf180 | ||
base_revision: ead455963c12b453cdb2358cad34969c76daf180 | ||
- platform: android | ||
create_revision: ead455963c12b453cdb2358cad34969c76daf180 | ||
base_revision: ead455963c12b453cdb2358cad34969c76daf180 | ||
- platform: ios | ||
create_revision: ead455963c12b453cdb2358cad34969c76daf180 | ||
base_revision: ead455963c12b453cdb2358cad34969c76daf180 | ||
|
||
# User provided section | ||
|
||
# List of Local paths (relative to this file) that should be | ||
# ignored by the migrate tool. | ||
# | ||
# Files that are not part of the templates will be ignored by default. | ||
unmanaged_files: | ||
- 'lib/main.dart' | ||
- 'ios/Runner.xcodeproj/project.pbxproj' |
Oops, something went wrong.