forked from Princeprince559/ride-or-die
-
Notifications
You must be signed in to change notification settings - Fork 0
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 f73d17f
Showing
514 changed files
with
52,374 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,5 @@ | ||
**/.* | ||
**/build.Containerfile | ||
**/local.properties | ||
**/build | ||
**/*.iml |
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,10 @@ | ||
# Contributing Guidelines | ||
|
||
We love pull requests from everyone! Bug reports are also welcome. | ||
|
||
However if you've got a question or would like to start a discussion, please post to | ||
[Bitcoin stack exchange](https://bitcoin.stackexchange.com/questions/tagged/bitcoin-wallet-app). | ||
|
||
If you would like to contribute language translations, we prefer if you use our | ||
[Transifex project](https://explore.transifex.com/bitcoin-wallet/bitcoin-wallet/). Languages will be | ||
synced from there regularly. |
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,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request 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,25 @@ | ||
# This workflow will build a Java project with Ant | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant | ||
|
||
name: Java CI | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
- name: Build with Ant | ||
run: ant -noinput -buildfile build.xml |
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,63 @@ | ||
# This workflow will build a Java project and deploy it to an Azure Functions App on Windows or Linux when a commit is pushed to your default branch. | ||
# | ||
# This workflow assumes you have already created the target Azure Functions app. | ||
# For instructions see https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-java | ||
# | ||
# To configure this workflow: | ||
# 1. Set up the following secrets in your repository: | ||
# - AZURE_FUNCTIONAPP_PUBLISH_PROFILE | ||
# 2. Change env variables for your configuration. | ||
# | ||
# For more information on: | ||
# - GitHub Actions for Azure: https://github.com/Azure/Actions | ||
# - Azure Functions Action: https://github.com/Azure/functions-action | ||
# - Publish Profile: https://github.com/Azure/functions-action#using-publish-profile-as-deployment-credential-recommended | ||
# - Azure Service Principal for RBAC: https://github.com/Azure/functions-action#using-azure-service-principal-for-rbac-as-deployment-credential | ||
# | ||
# For more samples to get started with GitHub Action workflows to deploy to Azure: https://github.com/Azure/actions-workflow-samples/tree/master/FunctionApp | ||
|
||
name: Deploy Java project to Azure Function App | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
|
||
env: | ||
AZURE_FUNCTIONAPP_NAME: 'your-app-name' # set this to your function app name on Azure | ||
POM_XML_DIRECTORY: '.' # set this to the directory which contains pom.xml file | ||
JAVA_VERSION: '8' # set this to the java version to use (e.g. '8', '11', '17') | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: windows-latest # For Linux, use ubuntu-latest | ||
environment: dev | ||
steps: | ||
- name: 'Checkout GitHub Action' | ||
uses: actions/checkout@v3 | ||
|
||
# If you want to use Azure RBAC instead of Publish Profile, then uncomment the task below | ||
# - name: 'Login via Azure CLI' | ||
# uses: azure/login@v1 | ||
# with: | ||
# creds: ${{ secrets.AZURE_RBAC_CREDENTIALS }} # set up AZURE_RBAC_CREDENTIALS secrets in your repository | ||
|
||
- name: Setup Java Sdk ${{ env.JAVA_VERSION }} | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ env.JAVA_VERSION }} | ||
|
||
- name: 'Restore Project Dependencies Using Mvn' | ||
shell: pwsh # For Linux, use bash | ||
run: | | ||
pushd './${{ env.POM_XML_DIRECTORY }}' | ||
mvn clean package | ||
popd | ||
- name: 'Run Azure Functions Action' | ||
uses: Azure/functions-action@v1 | ||
id: fa | ||
with: | ||
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }} | ||
package: '${{ env.POM_XML_DIRECTORY }}' # if there are multiple function apps in same project, then this path will be like './${{ env.POM_XML_DIRECTORY }}/target/azure-functions/${{ env.POM_FUNCTIONAPP_NAME }' | ||
publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }} # Remove publish-profile to use Azure RBAC | ||
respect-pom-xml: 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,82 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ "main" ] | ||
schedule: | ||
- cron: '39 8 * * 1' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
# Runner size impacts CodeQL analysis time. To learn more, please see: | ||
# - https://gh.io/recommended-hardware-resources-for-running-codeql | ||
# - https://gh.io/supported-runners-and-hardware-resources | ||
# - https://gh.io/using-larger-runners | ||
# Consider using larger runners for possible analysis time improvements. | ||
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} | ||
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'java' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ] | ||
# Use only 'java' to analyze code written in Java, Kotlin or both | ||
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both | ||
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
|
||
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs | ||
# queries: security-extended,security-and-quality | ||
|
||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun | ||
|
||
# If the Autobuild fails above, remove it and uncomment the following three lines. | ||
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. | ||
|
||
# - run: | | ||
# echo "Run, Build Application using script" | ||
# ./location_of_script_within_repo/buildscript.sh | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: "/language:${{matrix.language}}" |
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,55 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
# A sample workflow which checks out the code, builds a container | ||
# image using Docker and scans that image for vulnerabilities using | ||
# Snyk. The results are then uploaded to GitHub Security Code Scanning | ||
# | ||
# For more examples, including how to limit scans to only high-severity | ||
# issues, monitor images for newly disclosed vulnerabilities in Snyk and | ||
# fail PR checks for new vulnerabilities, see https://github.com/snyk/actions/ | ||
|
||
name: Snyk Container | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ "main" ] | ||
schedule: | ||
- cron: '37 14 * * 1' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
snyk: | ||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build a Docker image | ||
run: docker build -t your/image-to-test . | ||
- name: Run Snyk to check Docker image for vulnerabilities | ||
# Snyk can be used to break the build when it detects vulnerabilities. | ||
# In this case we want to upload the issues to GitHub Code Scanning | ||
continue-on-error: true | ||
uses: snyk/actions/docker@14818c4695ecc4045f33c9cee9e795a788711ca4 | ||
env: | ||
# In order to use the Snyk Action you will need to have a Snyk API token. | ||
# More details in https://github.com/snyk/actions#getting-your-snyk-token | ||
# or you can signup for free at https://snyk.io/login | ||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | ||
with: | ||
image: your/image-to-test | ||
args: --file=Dockerfile | ||
- name: Upload result to GitHub Code Scanning | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: snyk.sarif |
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,13 @@ | ||
.gradle/ | ||
gradlew | ||
gradlew.bat | ||
gradle/wrapper | ||
build/ | ||
local.properties | ||
.classpath | ||
.project | ||
.settings/ | ||
.idea/ | ||
*.iml | ||
bin/ | ||
gen/ |
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,71 @@ | ||
variables: | ||
ANDROID_HOME: $PWD/android-sdk | ||
|
||
reference: | ||
image: debian:bookworm-slim | ||
before_script: | ||
- apt-get update | ||
- apt-get -y install ca-certificates buildah | ||
# switch to iptables legacy, as GitLab CI doesn't support nftables | ||
- apt-get -y install --no-install-recommends iptables | ||
- update-alternatives --set iptables /usr/sbin/iptables-legacy | ||
script: | ||
- buildah build --file build.Containerfile --output build . | ||
after_script: | ||
- sha256sum build/* | ||
artifacts: | ||
name: bitcoin-wallet-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA | ||
paths: | ||
- build/** | ||
|
||
bullseye-jdk11: | ||
image: debian:bullseye-backports | ||
script: | ||
- apt-get update | ||
- apt-get -y install openjdk-11-jdk-headless gradle sdkmanager | ||
- yes | sdkmanager --licenses >/dev/null || true | ||
- gradle build --stacktrace | ||
- gradle --version | ||
artifacts: | ||
name: bitcoin-wallet-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA | ||
paths: | ||
- wallet/build/outputs/apk/**/*.apk | ||
|
||
bookworm-jdk17: | ||
image: debian:bookworm-slim | ||
script: | ||
- apt-get update | ||
- apt-get -y install openjdk-17-jdk-headless gradle sdkmanager | ||
- yes | sdkmanager --licenses >/dev/null || true | ||
- gradle build --stacktrace | ||
- gradle --version | ||
artifacts: | ||
name: bitcoin-wallet-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA | ||
paths: | ||
- wallet/build/outputs/apk/**/*.apk | ||
|
||
jammy-jdk11: | ||
image: ubuntu:jammy | ||
script: | ||
- apt-get update | ||
- apt-get -y install openjdk-11-jdk-headless gradle sdkmanager | ||
- yes | sdkmanager --licenses >/dev/null || true | ||
- gradle build --stacktrace | ||
- gradle --version | ||
artifacts: | ||
name: bitcoin-wallet-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA | ||
paths: | ||
- wallet/build/outputs/apk/**/*.apk | ||
|
||
lunar-jdk17: | ||
image: ubuntu:lunar | ||
script: | ||
- apt-get update | ||
- apt-get -y install openjdk-17-jdk-headless gradle sdkmanager | ||
- yes | sdkmanager --licenses >/dev/null || true | ||
- gradle build --stacktrace | ||
- gradle --version | ||
artifacts: | ||
name: bitcoin-wallet-$CI_JOB_NAME-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA | ||
paths: | ||
- wallet/build/outputs/apk/**/*.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,30 @@ | ||
[main] | ||
host = https://www.transifex.com | ||
|
||
[bitcoin-wallet.strings] | ||
type = ANDROID | ||
source_file = wallet/res/values/strings.xml | ||
source_lang = en | ||
file_filter = wallet/res/values-<lang>/strings.xml | ||
lang_map = sl_SI:sl, pt_PT:pt-rPT, pt_BR:pt-rBR, zh_TW:zh-rTW | ||
|
||
[bitcoin-wallet.strings_help] | ||
type = ANDROID | ||
source_file = wallet/res/values/strings_help.xml | ||
source_lang = en | ||
file_filter = wallet/res/values-<lang>/strings_help.xml | ||
lang_map = sl_SI:sl, pt_PT:pt-rPT, pt_BR:pt-rBR, zh_TW:zh-rTW | ||
|
||
[bitcoin-wallet.market-promo-text] | ||
type = TXT | ||
source_file = market/market-promo-text.txt | ||
source_lang = en | ||
file_filter = market/market-promo-text-<lang>.txt | ||
lang_map = sl_SI:sl, pt_PT:pt-PT, pt_BR:pt-BR, zh_TW:zh-TW | ||
|
||
[bitcoin-wallet.market-description] | ||
type = TXT | ||
source_file = market/market-description.txt | ||
source_lang = en | ||
file_filter = market/market-description-<lang>.txt | ||
lang_map = sl_SI:sl, pt_PT:pt-PT, pt_BR:pt-BR, zh_TW:zh-TW |
Oops, something went wrong.