Skip to content

Commit 65a24a3

Browse files
committed
first commit
0 parents  commit 65a24a3

File tree

120 files changed

+10249
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+10249
-0
lines changed
+120
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
name: Build alpha release
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
7+
jobs:
8+
build_android:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Install Node.js
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: 18
16+
- uses: pnpm/action-setup@v2
17+
name: Install pnpm
18+
with:
19+
version: 8
20+
run_install: false
21+
22+
- uses: actions/cache@v3
23+
with:
24+
path: |
25+
~/.gradle/caches
26+
~/.gradle/wrapper
27+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
28+
restore-keys: |
29+
${{ runner.os }}-gradle-
30+
- name: Setup java
31+
uses: actions/setup-java@v4
32+
with:
33+
distribution: zulu
34+
java-version: '17'
35+
- name: Decode Keystore File
36+
uses: timheuer/base64-to-file@v1
37+
id: android_keystore
38+
with:
39+
fileName: android_keystore.keystore
40+
encodedString: ${{ secrets.ANDROID_KEYSTORE_FILE }}
41+
- uses: ruby/setup-ruby@v1
42+
with:
43+
ruby-version: '3.0'
44+
bundler-cache: true
45+
- uses: maierj/[email protected]
46+
env:
47+
KEYSTORE_PATH: ${{ steps.android_keystore.outputs.filePath }}
48+
KEYSTORE_KEY_ALIAS: ${{ secrets.KEYSTORE_KEY_ALIAS }}
49+
KEYSTORE_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
50+
KEYSTORE_STORE_PASSWORD: ${{ secrets.KEYSTORE_STORE_PASSWORD }}
51+
with:
52+
lane: alpha
53+
- run: mv release noctule.apk
54+
- name: upload binary artifacts
55+
uses: actions/upload-artifact@v4
56+
with:
57+
name: wallet
58+
path: |
59+
release/wallet.apk
60+
61+
semantic-release:
62+
permissions:
63+
contents: write
64+
needs: build_android
65+
runs-on: ubuntu-latest
66+
if: github.ref == 'refs/heads/main'
67+
outputs:
68+
release: ${{ steps.tag_release.outputs.release }}
69+
version: ${{ steps.tag_release.outputs.version }}
70+
steps:
71+
- uses: actions/checkout@v4
72+
- name: Setup Node.js 18
73+
uses: actions/setup-node@v4
74+
with:
75+
node-version: 18.x
76+
- uses: pnpm/action-setup@v2
77+
name: Install pnpm
78+
with:
79+
version: 8
80+
- name: Install deps
81+
run: |
82+
pnpm i
83+
- name: Tag release
84+
id: tag_release
85+
env:
86+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87+
run: |
88+
npx semantic-release >semantic-release.log
89+
cat semantic-release.log
90+
if [[ `git tag --points-at HEAD` == "" ]]; then
91+
echo "release=False" >> $GITHUB_OUTPUT
92+
else
93+
echo "release=True" >> $GITHUB_OUTPUT
94+
awk '/Published release/ { printf("version=v%s\n",$8) }' semantic-release.log >> $GITHUB_OUTPUT
95+
fi
96+
echo "Result"
97+
cat $GITHUB_OUTPUT
98+
99+
draft-release:
100+
permissions:
101+
contents: write
102+
needs: semantic-release
103+
runs-on: ubuntu-latest
104+
if: ${{ needs.semantic-release.outputs.release == 'True' }}
105+
steps:
106+
- name: download binary artifacts
107+
uses: actions/download-artifact@v4
108+
with:
109+
path: |
110+
wallet-release
111+
- name: relase all binary artifacts
112+
uses: softprops/action-gh-release@v1
113+
with:
114+
files: |
115+
wallet-release/wallet/*
116+
draft: false
117+
prerelease: false
118+
fail_on_unmatched_files: true
119+
generate_release_notes: true
120+
tag_name: ${{ needs.semantic-release.outputs.version }}

.github/workflows/codeql.yml

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "main" ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ "main" ]
20+
schedule:
21+
- cron: '20 22 * * 5'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
# Runner size impacts CodeQL analysis time. To learn more, please see:
27+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
28+
# - https://gh.io/supported-runners-and-hardware-resources
29+
# - https://gh.io/using-larger-runners
30+
# Consider using larger runners for possible analysis time improvements.
31+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
32+
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
33+
permissions:
34+
actions: read
35+
contents: read
36+
security-events: write
37+
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
language: [ 'java-kotlin', 'javascript-typescript', 'swift' ]
42+
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
43+
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
44+
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
45+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
46+
47+
steps:
48+
- name: Checkout repository
49+
uses: actions/checkout@v3
50+
51+
# Initializes the CodeQL tools for scanning.
52+
- name: Initialize CodeQL
53+
uses: github/codeql-action/init@v2
54+
with:
55+
languages: ${{ matrix.language }}
56+
# If you wish to specify custom queries, you can do so here or in a config file.
57+
# By default, queries listed here will override any specified in a config file.
58+
# Prefix the list here with "+" to use these queries and those in the config file.
59+
60+
# 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
61+
# queries: security-extended,security-and-quality
62+
63+
64+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
65+
# If this step fails, then you should remove it and run the build manually (see below)
66+
- name: Autobuild
67+
uses: github/codeql-action/autobuild@v2
68+
69+
# ℹ️ Command-line programs to run using the OS shell.
70+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
71+
72+
# If the Autobuild fails above, remove it and uncomment the following three lines.
73+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
74+
75+
# - run: |
76+
# echo "Run, Build Application using script"
77+
# ./location_of_script_within_repo/buildscript.sh
78+
79+
- name: Perform CodeQL Analysis
80+
uses: github/codeql-action/analyze@v2
81+
with:
82+
category: "/language:${{matrix.language}}"

.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
vite.config.js.timestamp-*
10+
vite.config.ts.timestamp-*

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

.prettierignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
10+
# Ignore files for PNPM, NPM and YARN
11+
pnpm-lock.yaml
12+
package-lock.json
13+
yarn.lock
14+
15+
android/app/src/main/AndroidManifest.xml

.prettierrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 120,
6+
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
7+
"pluginSearchDirs": ["."],
8+
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
9+
}

.releaserc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"repositoryUrl": "[email protected]:ForkbombEu/wallet.git",
3+
"dryRun": false,
4+
"plugins": [
5+
"@semantic-release/commit-analyzer",
6+
"@semantic-release/release-notes-generator",
7+
"@semantic-release/changelog",
8+
],
9+
"branches": ["main"]
10+
}

.tool-versions

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
java adoptopenjdk-17.0.9+9

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"java.configuration.updateBuildConfiguration": "interactive"
3+
}

Gemfile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Autogenerated by fastlane
2+
#
3+
# Ensure this file is checked in to source control!
4+
5+
source "https://rubygems.org"
6+
7+
gem 'fastlane'
8+
9+
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
10+
eval_gemfile(plugins_path) if File.exist?(plugins_path)

0 commit comments

Comments
 (0)