Skip to content
Open
Show file tree
Hide file tree
Changes from 4 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
6 changes: 3 additions & 3 deletions flutter_vlc_player/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ group 'software.solid.fluttervlcplayer'
version '1.0-SNAPSHOT'

buildscript {
ext.kotlin_version = "1.8.22"
ext.kotlin_version = "2.1.0"
repositories {
google()
mavenCentral()
Expand Down Expand Up @@ -50,7 +50,7 @@ android {
dependencies {
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.mockito:mockito-core:5.0.0")
implementation 'org.videolan.android:libvlc-all:3.6.3'
implementation 'org.videolan.android:libvlc-all:4.0.0-eap21'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.annotation:annotation:1.9.1'
Expand All @@ -62,7 +62,7 @@ android {

testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
outputs.upToDateWhen { false }
outputs.upToDateWhen {false}
showStandardStreams = true
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
package software.solid.fluttervlcplayer.Enums;

public enum DataSourceType {
ASSET,
NETWORK,
FILE

ASSET(0),
NETWORK(1),
FILE(2);

private int mType;

DataSourceType (int type)
{
this.mType = type;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The constructor formatting is unconventional for Java. It's better to follow standard Java conventions for consistency and readability. Specifically, the space before the parameter list and the placement of curly braces can be improved.

    DataSourceType(int type) {
        this.mType = type;
    }

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's a reasonable comment - can we fix it?


public int getNumericType() {
return mType;
}

}
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
package software.solid.fluttervlcplayer.Enums;

public enum HwAcc {
AUTOMATIC,
DISABLED,
DECODING,
FULL

AUTOMATIC(-1),
DISABLED(0),
DECODING(1),
FULL(2);

private int mType;

HwAcc (int type)
{
this.mType = type;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The constructor formatting is unconventional for Java. It's better to follow standard Java conventions for consistency and readability. Specifically, the space before the parameter list and the placement of curly braces can be improved.

    HwAcc(int type) {
        this.mType = type;
    }


public int getNumericType() {
return mType;
}
}
Loading
Loading