-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Showing
463 changed files
with
17,289 additions
and
14,374 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,61 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [develop] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [develop] | ||
schedule: | ||
- cron: '0 21 * * 5' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# Override automatic language detection by changing the below list | ||
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python'] | ||
language: ['java'] | ||
# Learn more... | ||
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
# We must fetch at least the immediate parents so that if this is | ||
# a pull request then we can checkout the head. | ||
fetch-depth: 2 | ||
|
||
# If this run was triggered by a pull request event, then checkout | ||
# the head of the pull request instead of the merge commit. | ||
- run: git checkout HEAD^2 | ||
if: ${{ github.event_name == 'pull_request' }} | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: ${{ matrix.language }} | ||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
# uses: github/codeql-action/autobuild@v1 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 https://git.io/JvXDl | ||
|
||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | ||
# and modify them (or add more) to build your code if your project | ||
# uses a compiled language | ||
|
||
run: ./gradlew build | ||
|
||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 |
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,28 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
jobs: | ||
build-and-test: | ||
name: Build and run tests | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout current develop branch | ||
uses: actions/checkout@v1 | ||
- name: Setup JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Run unit/instrumentation tests and coverage generation | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: 29 | ||
arch: x86 | ||
profile: Nexus 6 | ||
avd-name: test | ||
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim | ||
disable-animations: true | ||
script: ./gradlew -Pandroid.testInstrumentationRunnerArguments.notAnnotation=androidx.test.filters.FlakyTest,androidx.test.filters.LargeTest jacocoTestReport --stacktrace | ||
- name: SonarCloud static code and coverage analysis | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
run: ./gradlew sonarqube -Dsonar.login="$SONAR_TOKEN" |
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 |
---|---|---|
|
@@ -59,3 +59,5 @@ omniNotes/gradle.properties | |
*.log | ||
|
||
\.directory | ||
|
||
.gradletasknamecache |
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
~ Copyright (C) 2013-2019 Federico Iosue ([email protected]) | ||
~ Copyright (C) 2013-2020 Federico Iosue ([email protected]) | ||
~ | ||
~ This program is free software: you can redistribute it and/or modify | ||
~ it under the terms of the GNU General Public License as published by | ||
|
@@ -51,14 +51,6 @@ | |
<item >Notes list</item> | ||
</string-array> | ||
|
||
<string-array name="text_size"> | ||
<item >Smallest</item> | ||
<item >Small</item> | ||
<item >Default</item> | ||
<item >Large</item> | ||
<item >Largest</item> | ||
</string-array> | ||
|
||
<string-array name="attachments_actions"> | ||
<item>Share</item> | ||
<item>Delete</item> | ||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<!-- | ||
~ Copyright (C) 2013-2019 Federico Iosue ([email protected]) | ||
~ Copyright (C) 2013-2020 Federico Iosue ([email protected]) | ||
~ | ||
~ This program is free software: you can redistribute it and/or modify | ||
~ it under the terms of the GNU General Public License as published by | ||
|
@@ -89,7 +89,7 @@ | |
<string name="data_export_failed">Data backup failed: check logcat for details</string> | ||
<string name="data_import_completed">Data restore completed</string> | ||
<string name="click_to_refresh_application">Click to refresh application</string> | ||
<string name="backup_existing">Backup already exist. It\'ll be overwritten</string> | ||
<string name="backup_existing">Backup already exists. It\'ll be overwritten</string> | ||
<string name="tag">Tag</string> | ||
<string name="tags">Tags</string> | ||
<string name="add_tag">Add tags</string> | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (C) 2013-2019 Federico Iosue ([email protected]) | ||
* Copyright (C) 2013-2020 Federico Iosue ([email protected]) | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -16,15 +16,18 @@ | |
*/ | ||
|
||
buildscript { | ||
ext.kotlin_version = '1.5.31' | ||
repositories { | ||
jcenter() | ||
mavenLocal() | ||
google() | ||
mavenCentral() | ||
maven { url "https://plugins.gradle.org/m2/" } | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:3.1.4' | ||
classpath 'me.tatarka.retrolambda.projectlombok:lombok.ast:0.2.3.a2' | ||
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6" | ||
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.1' | ||
classpath 'com.android.tools.build:gradle:4.1.3' | ||
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.0" | ||
classpath 'com.adarshr:gradle-test-logger-plugin:2.1.0' | ||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | ||
} | ||
// Exclude the version that the android plugin depends on. | ||
configurations.classpath.exclude group: 'com.android.tools.external.lombok' | ||
|
@@ -33,9 +36,9 @@ buildscript { | |
allprojects { | ||
repositories { | ||
mavenLocal() | ||
jcenter() | ||
maven {url "https://jitpack.io"} | ||
maven {url "http://dl.bintray.com/tbruyelle/tbruyelle" } | ||
mavenCentral() | ||
maven { url "https://jitpack.io" } | ||
maven { url "https://plugins.gradle.org/m2/" } | ||
google() | ||
} | ||
} | ||
|
@@ -45,10 +48,13 @@ sonarqube { | |
properties { | ||
property "sonar.projectName", "Omni Notes" | ||
property "sonar.projectKey", "omni-notes" | ||
property "sonar.organization", "federicoiosue-github" | ||
property 'sonar.projectVersion', project.VERSION_NAME | ||
property "sonar.host.url", "https://sonarcloud.io" | ||
property 'sonar.sourceEncoding', 'UTF-8' | ||
property 'sonar.language', 'java' | ||
property 'sonar.coverage.jacoco.xmlReportPaths', "**/build/reports/coverage/**/debug/report.xml" | ||
property 'sonar.exclusions', '**/src/main/assets/**/*.*' | ||
property 'sonar.test.exclusions', '**/src/test/**/*.*,**/src/androidTest/**/*.*' | ||
} | ||
} | ||
|
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
Oops, something went wrong.