From 8aab9eb9f828e84c4be83a5642c8bb71caf12607 Mon Sep 17 00:00:00 2001 From: needle10 Date: Mon, 1 Dec 2025 23:49:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D1=8B=D0=B5=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=B8=D0=BB=D0=B0=20=D0=BE=D0=B1=D1=84=D1=83=D1=81?= =?UTF-8?q?=D0=BA=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/app/proguard-rules.pro | 56 ++++++++++++++++++++++++++++++++++ lib/consts.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 58 insertions(+), 2 deletions(-) diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro index d866756..8a35d81 100644 --- a/android/app/proguard-rules.pro +++ b/android/app/proguard-rules.pro @@ -9,3 +9,59 @@ -dontwarn com.google.android.play.core.splitcompat.SplitCompatApplication -dontwarn com.google.android.play.core.splitinstall.** -dontwarn com.google.android.play.core.tasks.** + +# Правила для video_player плагина +-keep class io.flutter.plugins.videoplayer.** { *; } +-keep class io.flutter.plugins.videoplayer.VideoPlayerPlugin { *; } +-keep class io.flutter.plugins.videoplayer.VideoPlayerApi { *; } +-dontwarn io.flutter.plugins.videoplayer.** + +# Правила для ExoPlayer (используется video_player на Android) +# Поддержка старых версий ExoPlayer +-keep class com.google.android.exoplayer2.** { *; } +-keep interface com.google.android.exoplayer2.** { *; } +-dontwarn com.google.android.exoplayer2.** + +# Поддержка новых версий ExoPlayer (3.x) +-keep class androidx.media3.** { *; } +-keep interface androidx.media3.** { *; } +-dontwarn androidx.media3.** + +# Сохранить все классы, используемые ExoPlayer через рефлексию +-keepclassmembers class * { + @com.google.android.exoplayer2.util.UnknownNull *; +} +-keepclassmembers class * { + @androidx.media3.common.util.UnknownNull *; +} + +# Правила для chewie (если используется) +-keep class com.brianegan.chewie.** { *; } +-dontwarn com.brianegan.chewie.** + +# Сохранить все классы, используемые через рефлексию +-keepattributes *Annotation* +-keepattributes Signature +-keepattributes Exceptions +-keepattributes InnerClasses +-keepattributes EnclosingMethod + +# Сохранить нативные методы +-keepclasseswithmembernames class * { + native ; +} + +# Сохранить классы с аннотациями @Keep +-keep @androidx.annotation.Keep class * +-keepclassmembers class * { + @androidx.annotation.Keep *; +} + +# Правила для Apache Tika (используется некоторыми плагинами) +-dontwarn javax.xml.stream.XMLStreamException +-dontwarn javax.xml.stream.** +-dontwarn org.apache.tika.** + +# Игнорировать предупреждения о недостающих классах XML (не включены в Android) +-dontwarn javax.xml.** +-dontwarn org.w3c.dom.** \ No newline at end of file diff --git a/lib/consts.dart b/lib/consts.dart index 4d18362..a327646 100644 --- a/lib/consts.dart +++ b/lib/consts.dart @@ -1,2 +1,2 @@ // Датафайл с константами, полезно при изменении версии например -const version = "0.3.0"; +const version = "0.3.1"; diff --git a/pubspec.yaml b/pubspec.yaml index 493ab32..43a1d51 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.3.0+6 +version: 0.3.1+7 environment: sdk: ^3.9.2