-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix some IDE reported issues #17405
Open
MritunjayTiwari14
wants to merge
4
commits into
ankidroid:main
Choose a base branch
from
MritunjayTiwari14:my-feature-branch
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+15
−10
Open
Fix some IDE reported issues #17405
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -5,7 +5,9 @@ import org.gradle.api.tasks.testing.logging.TestExceptionFormat | |
import org.gradle.internal.jvm.Jvm | ||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | ||
import java.io.ByteArrayOutputStream | ||
import java.util.Properties | ||
import kotlin.math.max | ||
import kotlin.system.exitProcess | ||
|
||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
plugins { | ||
|
@@ -20,11 +22,11 @@ plugins { | |
alias(libs.plugins.keeper) apply false | ||
} | ||
|
||
val localProperties = java.util.Properties() | ||
val localProperties = Properties() | ||
if (project.rootProject.file("local.properties").exists()) { | ||
localProperties.load(project.rootProject.file("local.properties").inputStream()) | ||
} | ||
val fatalWarnings = !(localProperties["fatal_warnings"] == "false") | ||
val fatalWarnings = localProperties["fatal_warnings"] != "false" | ||
|
||
// Here we extract per-module "best practices" settings to a single top-level evaluation | ||
subprojects { | ||
|
@@ -99,19 +101,19 @@ if (jvmVersion != "17" && jvmVersion != "21") { | |
println("**************************************************************************************************************") | ||
println("\n\n\n") | ||
println("ERROR: AnkiDroid builds with JVM version 17 or 21.") | ||
println(" Incompatible major version detected: '" + jvmVersion + "'") | ||
println(" Incompatible major version detected: '$jvmVersion'") | ||
println("\n\n\n") | ||
println(" If you receive this error because you want to use a newer JDK, we may accept PRs to support new versions.") | ||
println(" Edit the main build.gradle file, find this message in the file, and add support for the new version.") | ||
println(" Please make sure the `jacocoTestReport` target works on an emulator with our minSdkVersion (currently 23).") | ||
println("\n\n\n") | ||
println("**************************************************************************************************************") | ||
println("\n\n\n") | ||
System.exit(1) | ||
exitProcess(1) | ||
} | ||
|
||
val ciBuild by extra(System.getenv("CI") == "true") // works for Travis CI or Github Actions | ||
// allows for -Dpre-dex=false to be set | ||
// allows for -Dare-dex=false to be set | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Revert this, it changes the meaning of the comment. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay Sir |
||
val preDexEnabled by extra("true" == System.getProperty("pre-dex", "true")) | ||
// allows for universal APKs to be generated | ||
val universalApkEnabled by extra("true" == System.getProperty("universal-apk", "false")) | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the obsolete align attribute. Also revert the spacing change on the inner img tag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Request above still active.