diff --git a/.github/workflows/codeyl.yml b/.github/workflows/codeql.yml similarity index 84% rename from .github/workflows/codeyl.yml rename to .github/workflows/codeql.yml index 413a0ae..df99a01 100644 --- a/.github/workflows/codeyl.yml +++ b/.github/workflows/codeql.yml @@ -35,7 +35,11 @@ jobs: with: fetch-depth: 0 - - name: Set up Java (for Java scans) + - name: Setup Android SDK (for Android scans) + if: matrix.language == 'java' + uses: android-actions/setup-android@v3 + + - name: Set up Java (for Java/Android scans) if: matrix.language == 'java' uses: actions/setup-java@v4 with: @@ -57,12 +61,12 @@ jobs: run: | echo "Building for language: ${{ matrix.language }}" if [ "${{ matrix.language }}" = "java" ]; then - chmod +x ./gradlew || true - ./gradlew assembleDebug --no-daemon || true + chmod +x ./gradlew + ./gradlew assembleDebug --no-daemon elif [ "${{ matrix.language }}" = "javascript" ]; then if [ -f package.json ]; then - npm ci || true - npm run build || true + npm ci + npm run build fi else echo "No explicit build for language: ${{ matrix.language }}" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f9b98f6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,23 @@ +# Gradle +.gradle/ +build/ + +# Android +app/build/ +*.apk +*.aar +*.ap_ + +# IDE +.idea/ +*.iml +.vscode/ + +# Logs +*.log +.quantum_logs/ + +# Agent/Temp +cortex_report.json +gradlew.bak +gradlew.txt.bak diff --git a/build.gradle.kts b/build.gradle.kts index 2f4a51e..6f53cb8 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,8 +1,8 @@ // Root build.gradle.kts plugins { - id("com.android.application") version "8.2.2" apply true - id("com.android.library") version "8.2.2" apply true - id("org.jetbrains.kotlin.android") version "1.9.22" apply true + id("com.android.application") version "8.2.2" apply false + id("com.android.library") version "8.2.2" apply false + id("org.jetbrains.kotlin.android") version "1.9.22" apply false } tasks.register("clean", Delete::class) { diff --git a/gradlew.bak b/gradlew similarity index 100% rename from gradlew.bak rename to gradlew diff --git a/gradlew.txt.bak b/gradlew.txt.bak deleted file mode 100644 index 1d6e54b..0000000 --- a/gradlew.txt.bak +++ /dev/null @@ -1,84 +0,0 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem - -@if "%DEBUG%"=="" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%"=="" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if %ERRORLEVEL% equ 0 goto execute - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* - -:end -@rem End local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" endlocal - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd_ return code when running from the cmd command line. -if "%GRADLE_EXIT_CONSOLE%"=="" exit /b 1 -exit /b %GRADLE_EXIT_CONSOLE%