Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 9 additions & 20 deletions .github/workflows/security-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Save repo to artifact
uses: actions/upload-artifact@v4
with:
name: android-client
name: flutter-client
path: .
overwrite: true
if-no-files-found: error
Expand All @@ -36,22 +36,14 @@ jobs:
if: ${{ github.actor != 'dependabot[bot]' }}
strategy:
fail-fast: false
matrix:
java_version: [21]

steps:
- name: Download repo artifact
uses: actions/download-artifact@v5
with:
name: android-client
name: flutter-client
path: .

- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v5
with:
java-version: ${{ matrix.java_version }}
distribution: "zulu"

- name: GitGuardian scan
uses: GitGuardian/ggshield-action@v1.43.0
env:
Expand All @@ -68,20 +60,17 @@ jobs:
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar

- name: Cache Gradle packages
uses: actions/cache@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle

- name: Make gradlew executable
run: chmod +x ./gradlew
channel: stable
flutter-version: 3.32.8

- name: Build
run: |
./gradlew build sonar --info
chmod +x ./android/gradlew
flutter build appbundle
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v5
uses: SonarSource/sonarqube-scan-action@v6
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ local.properties
app/build
kls_database.db
build/reports
GeneratedPluginRegistrant.java
.cxx/
key.properties
**/*.keystore
**/*.jks
gradle-wrapper.jar

# Miscellaneous
*.class
Expand Down
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,3 @@ emulate: # Start emulator
-memory 4096 \
-no-snapshot-load \
-no-snapshot-save &

.PHONY: sonar
sonar:
./gradlew build sonar --info
14 changes: 0 additions & 14 deletions android/.gitignore

This file was deleted.

26 changes: 1 addition & 25 deletions android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,10 @@ plugins {
id("dev.flutter.flutter-gradle-plugin")
}

sonar {
properties {
property(
"sonar.projectKey",
"ZProfile_flutter-client",
)
property(
"sonar.organization",
"zprofile01",
)
property(
"sonar.verbose",
true,
)
property(
"sonar.flutter.source.version",
"3.8.1",
)
property(
"sonar.language",
"flutter",
)
}
}

android {
namespace = "com.example.zprofile"
compileSdk = flutter.compileSdkVersion

// ndkVersion = flutter.ndkVersion
ndkVersion = "26.1.10909125"

Expand Down
160 changes: 160 additions & 0 deletions android/gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

90 changes: 90 additions & 0 deletions android/gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading