generated from frogobox/frogo-android-sdk
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a4b2bd6
Showing
83 changed files
with
3,712 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,12 @@ | ||
# These are supported funding model platforms | ||
|
||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: # Replace with a single Patreon username | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
custom: https://saweria.co/amirisback |
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,103 @@ | ||
# This workflow performs a static analysis of your Kotlin source code using | ||
# Detekt. | ||
# | ||
# Scans are triggered: | ||
# 1. On every push to default and protected branches | ||
# 2. On every Pull Request targeting the default branch | ||
# 3. On a weekly schedule | ||
# 4. Manually, on demand, via the "workflow_dispatch" event | ||
# | ||
# The workflow should work with no modifications, but you might like to use a | ||
# later version of the Detekt CLI by modifing the $DETEKT_RELEASE_TAG | ||
# environment variable. | ||
name: Scan with Detekt | ||
|
||
on: | ||
# Triggers the workflow on push or pull request events but only for default and protected branches | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
schedule: | ||
- cron: '27 4 * * 1' | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
env: | ||
# Release tag associated with version of Detekt to be installed | ||
# SARIF support (required for this workflow) was introduced in Detekt v1.15.0 | ||
DETEKT_RELEASE_TAG: v1.15.0 | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "scan" | ||
scan: | ||
name: Scan | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
# Gets the download URL associated with the $DETEKT_RELEASE_TAG | ||
- name: Get Detekt download URL | ||
id: detekt_info | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
DETEKT_DOWNLOAD_URL=$( gh api graphql --field tagName=$DETEKT_RELEASE_TAG --raw-field query=' | ||
query getReleaseAssetDownloadUrl($tagName: String!) { | ||
repository(name: "detekt", owner: "detekt") { | ||
release(tagName: $tagName) { | ||
releaseAssets(name: "detekt", first: 1) { | ||
nodes { | ||
downloadUrl | ||
} | ||
} | ||
} | ||
} | ||
} | ||
' | \ | ||
jq --raw-output '.data.repository.release.releaseAssets.nodes[0].downloadUrl' ) | ||
echo "::set-output name=download_url::$DETEKT_DOWNLOAD_URL" | ||
# Sets up the detekt cli | ||
- name: Setup Detekt | ||
run: | | ||
dest=$( mktemp -d ) | ||
curl --request GET \ | ||
--url ${{ steps.detekt_info.outputs.download_url }} \ | ||
--silent \ | ||
--location \ | ||
--output $dest/detekt | ||
chmod a+x $dest/detekt | ||
echo $dest >> $GITHUB_PATH | ||
# Performs static analysis using Detekt | ||
- name: Run Detekt | ||
continue-on-error: true | ||
run: | | ||
detekt --input ${{ github.workspace }} --report sarif:${{ github.workspace }}/detekt.sarif.json | ||
# Modifies the SARIF output produced by Detekt so that absolute URIs are relative | ||
# This is so we can easily map results onto their source files | ||
# This can be removed once relative URI support lands in Detekt: https://git.io/JLBbA | ||
- name: Make artifact location URIs relative | ||
continue-on-error: true | ||
run: | | ||
echo "$( | ||
jq \ | ||
--arg github_workspace ${{ github.workspace }} \ | ||
'. | ( .runs[].results[].locations[].physicalLocation.artifactLocation.uri |= if test($github_workspace) then .[($github_workspace | length | . + 1):] else . end )' \ | ||
${{ github.workspace }}/detekt.sarif.json | ||
)" > ${{ github.workspace }}/detekt.sarif.json | ||
# Uploads results to GitHub repository using the upload-sarif action | ||
- uses: github/codeql-action/upload-sarif@v1 | ||
with: | ||
# Path to SARIF file relative to the root of the repository | ||
sarif_file: ${{ github.workspace }}/detekt.sarif.json | ||
checkout_path: ${{ github.workspace }} |
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 @@ | ||
name: Generate APK / AAB | ||
|
||
on: | ||
# Triggers the workflow on push or pull request events but only for default and protected branches | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Set Up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
|
||
- name: Change wrapper permissions | ||
run: chmod +x ./gradlew | ||
|
||
- name: Run tests | ||
run: ./gradlew test | ||
|
||
# Run Build Project | ||
- name: Build project | ||
run: ./gradlew build | ||
|
||
# Create APK Debug | ||
- name: Build apk debug project (APK) | ||
run: ./gradlew assembleDebug | ||
|
||
# Create APK Release | ||
- name: Build apk release project (APK) | ||
run: ./gradlew assemble | ||
|
||
# Create Bundle AAB Release | ||
# Noted for main module build [module-name]:bundleRelease | ||
- name: Build app bundle release (AAB) | ||
run: ./gradlew app:bundleRelease | ||
|
||
# Upload Artifact Build | ||
# Noted For Output [module-name]/build/outputs/ | ||
- name: Upload build APK / AAB | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: App bundle(s) and APK(s) generated | ||
path: app/build/outputs/ |
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,35 @@ | ||
*.iml | ||
/.gradle | ||
.gradle | ||
.idea | ||
/local.properties | ||
/.idea/libraries | ||
/.idea/modules.xml | ||
/.idea/workspace.xml | ||
.DS_Store | ||
build | ||
/build | ||
/captures | ||
.externalNativeBuild | ||
|
||
built application files | ||
.apk | ||
.ap_ | ||
|
||
files for the dex VM | ||
*.dex | ||
|
||
Java class files | ||
*.class | ||
|
||
generated files | ||
bin/ | ||
gen/ | ||
.externalNativeBuild/ | ||
|
||
Local configuration file (sdk path, etc) | ||
local.properties | ||
app/version.properties | ||
|
||
# SonarQube | ||
.sonar/ |
Oops, something went wrong.