Skip to content

Commit ff086b4

Browse files
author
Akshatji800
committed
fix: Resolves wrong information displayed in torrent content info issue
1 parent 744b747 commit ff086b4

File tree

7 files changed

+182
-109
lines changed

7 files changed

+182
-109
lines changed

.github/workflows/dart.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
java-version: '12.x'
1818
- uses: subosito/flutter-action@v1
1919
with:
20-
flutter-version: '2.5.0'
20+
flutter-version: '3.0.0'
2121
- run: flutter pub get
2222
# - run: flutter analyze
2323
- run: flutter format -n --set-exit-if-changed .

android/app/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ apply plugin: 'com.android.application'
2525
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2626

2727
android {
28-
compileSdkVersion 30
28+
compileSdkVersion 31
2929

3030
defaultConfig {
31+
multiDexEnabled true
3132
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
3233
applicationId "com.hustlecreatives.flood_mobile"
33-
minSdkVersion 16
34-
targetSdkVersion 30
34+
minSdkVersion 21
35+
targetSdkVersion 31
3536
versionCode flutterVersionCode.toInteger()
3637
versionName flutterVersionName
3738
}

android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
android:resource="@xml/provider_paths"/>
2828
</provider>
2929
<activity
30+
android:exported="true"
3031
android:name=".MainActivity"
3132
android:launchMode="singleTop"
3233
android:theme="@style/LaunchTheme"

android/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
buildscript {
2+
ext.kotlin_version = '1.6.10'
23
repositories {
34
google()
45
jcenter()
56
}
67

78
dependencies {
89
classpath 'com.android.tools.build:gradle:4.1.0'
10+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
911
}
1012
}
1113

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#Fri Jun 23 08:50:38 CEST 2017
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
43
zipStoreBase=GRADLE_USER_HOME

lib/Components/torrent_tile.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ class _TorrentTileState extends State<TorrentTile> {
378378
mainAxisAlignment: MainAxisAlignment.spaceBetween,
379379
children: [
380380
Text('Size'),
381-
Text(widget.model.directory),
381+
Text(filesize(widget.model.sizeBytes.toInt())),
382382
],
383383
),
384384
SizedBox(

0 commit comments

Comments
 (0)