Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions android/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Gradle files
.gradle/
build/
.kotlin

# Local configuration file (sdk path, etc)
local.properties
Expand Down
10 changes: 5 additions & 5 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ if (flutterVersionName == null) {

android {
namespace "com.feelsoftware.slidemix"
compileSdk 35
buildToolsVersion = '35.0.0'
compileSdk 36
buildToolsVersion = '36.0.0'
ndkVersion flutter.ndkVersion

compileOptions {
Expand All @@ -46,7 +46,7 @@ android {

defaultConfig {
minSdkVersion 24
targetSdkVersion 35
targetSdkVersion 36
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
resourceConfigurations += ['en', 'uk']
Expand All @@ -73,9 +73,9 @@ flutter {
}

dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.0"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0"

implementation files('libs/ffmpeg-kit-full-gpl-6.0-2.aar')
implementation files('libs/ffmpeg-kit-gpl-6.0.aar')

// To fix: ClassNotFoundException: Didn't find class "com.arthenica.smartexception.java.Exceptions" on path
implementation files('libs/smart-exception-common-0.2.1.jar')
Expand Down
Binary file not shown.
6 changes: 6 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
android:exported="true"
android:hardwareAccelerated="true"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:theme="@style/LaunchTheme"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
Expand All @@ -25,6 +26,11 @@
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme" />

<property
android:name="android.window.PROPERTY_COMPAT_ALLOW_RESTRICTED_RESIZABILITY"
android:value="true" />

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand Down
Binary file added android/app/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background" />
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<monochrome android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<monochrome android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
org.gradle.jvmargs=-Xmx1536M
org.gradle.jvmargs=-Xmx4g
android.useAndroidX=true
android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true
Expand Down
1 change: 1 addition & 0 deletions l10n.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
synthetic-package: false
arb-dir: lib/l10n
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import 'app_localizations_uk.dart';
/// `supportedLocales` list. For example:
///
/// ```dart
/// import 'gen_l10n/app_localizations.dart';
/// import 'l10n/app_localizations.dart';
///
/// return MaterialApp(
/// localizationsDelegates: AppLocalizations.localizationsDelegates,
Expand Down Expand Up @@ -62,15 +62,17 @@ import 'app_localizations_uk.dart';
/// be consistent with the languages listed in the AppLocalizations.supportedLocales
/// property.
abstract class AppLocalizations {
AppLocalizations(String locale) : localeName = intl.Intl.canonicalizedLocale(locale.toString());
AppLocalizations(String locale)
: localeName = intl.Intl.canonicalizedLocale(locale.toString());

final String localeName;

static AppLocalizations? of(BuildContext context) {
return Localizations.of<AppLocalizations>(context, AppLocalizations);
}

static const LocalizationsDelegate<AppLocalizations> delegate = _AppLocalizationsDelegate();
static const LocalizationsDelegate<AppLocalizations> delegate =
_AppLocalizationsDelegate();

/// A list of this localizations delegate along with the default localizations
/// delegates.
Expand All @@ -82,17 +84,18 @@ abstract class AppLocalizations {
/// Additional delegates can be added by appending to this list in
/// MaterialApp. This list does not have to be used at all if a custom list
/// of delegates is preferred or required.
static const List<LocalizationsDelegate<dynamic>> localizationsDelegates = <LocalizationsDelegate<dynamic>>[
delegate,
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
];
static const List<LocalizationsDelegate<dynamic>> localizationsDelegates =
<LocalizationsDelegate<dynamic>>[
delegate,
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
];

/// A list of this localizations delegate's supported locales.
static const List<Locale> supportedLocales = <Locale>[
Locale('en'),
Locale('uk')
Locale('uk'),
];

/// No description provided for @appName.
Expand Down Expand Up @@ -312,7 +315,8 @@ abstract class AppLocalizations {
String get previewActionDelete;
}

class _AppLocalizationsDelegate extends LocalizationsDelegate<AppLocalizations> {
class _AppLocalizationsDelegate
extends LocalizationsDelegate<AppLocalizations> {
const _AppLocalizationsDelegate();

@override
Expand All @@ -321,25 +325,26 @@ class _AppLocalizationsDelegate extends LocalizationsDelegate<AppLocalizations>
}

@override
bool isSupported(Locale locale) => <String>['en', 'uk'].contains(locale.languageCode);
bool isSupported(Locale locale) =>
<String>['en', 'uk'].contains(locale.languageCode);

@override
bool shouldReload(_AppLocalizationsDelegate old) => false;
}

AppLocalizations lookupAppLocalizations(Locale locale) {


// Lookup logic when only language code is specified.
switch (locale.languageCode) {
case 'en': return AppLocalizationsEn();
case 'uk': return AppLocalizationsUk();
case 'en':
return AppLocalizationsEn();
case 'uk':
return AppLocalizationsUk();
}

throw FlutterError(
'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
'an issue with the localizations generation tool. Please file an issue '
'on GitHub with a reproducible sample app and the gen-l10n configuration '
'that was used.'
'that was used.',
);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ignore: unused_import
import 'package:intl/intl.dart' as intl;

import 'app_localizations.dart';

// ignore_for_file: type=lint
Expand All @@ -25,8 +25,10 @@ class AppLocalizationsEn extends AppLocalizations {

@override
String notEnoughMediaToCreateMovie(int minMediaCountToProceed) {
final intl.NumberFormat minMediaCountToProceedNumberFormat = intl.NumberFormat.decimalPattern(localeName);
final String minMediaCountToProceedString = minMediaCountToProceedNumberFormat.format(minMediaCountToProceed);
final intl.NumberFormat minMediaCountToProceedNumberFormat =
intl.NumberFormat.decimalPattern(localeName);
final String minMediaCountToProceedString =
minMediaCountToProceedNumberFormat.format(minMediaCountToProceed);

return 'Add $minMediaCountToProceedString or more media to create your movie';
}
Expand All @@ -41,7 +43,8 @@ class AppLocalizationsEn extends AppLocalizations {
String get leaveCreationAlertSecondary => 'leave';

@override
String get leaveCancelAlertTitle => 'Movie is in progress, do you want to cancel?';
String get leaveCancelAlertTitle =>
'Movie is in progress, do you want to cancel?';

@override
String get leaveCancelAlertPrimary => 'cancel';
Expand Down Expand Up @@ -102,15 +105,12 @@ class AppLocalizationsEn extends AppLocalizations {

@override
String orientationSelector(String orientation) {
String _temp0 = intl.Intl.selectLogic(
orientation,
{
'landscape': 'Landscape',
'portrait': 'Portrait',
'square': 'Square',
'other': '',
},
);
String _temp0 = intl.Intl.selectLogic(orientation, {
'landscape': 'Landscape',
'portrait': 'Portrait',
'square': 'Square',
'other': '',
});
return '$_temp0';
}

Expand All @@ -119,14 +119,11 @@ class AppLocalizationsEn extends AppLocalizations {

@override
String resizeSelector(String resize) {
String _temp0 = intl.Intl.selectLogic(
resize,
{
'contain': 'Contain all content',
'cover': 'Resize and crop',
'other': '',
},
);
String _temp0 = intl.Intl.selectLogic(resize, {
'contain': 'Contain all content',
'cover': 'Resize and crop',
'other': '',
});
return '$_temp0';
}

Expand All @@ -141,15 +138,17 @@ class AppLocalizationsEn extends AppLocalizations {

@override
String projectTitle(int projectId) {
final intl.NumberFormat projectIdNumberFormat = intl.NumberFormat.decimalPattern(localeName);
final intl.NumberFormat projectIdNumberFormat =
intl.NumberFormat.decimalPattern(localeName);
final String projectIdString = projectIdNumberFormat.format(projectId);

return 'project #$projectIdString';
}

@override
String draftTitle(int projectId) {
final intl.NumberFormat projectIdNumberFormat = intl.NumberFormat.decimalPattern(localeName);
final intl.NumberFormat projectIdNumberFormat =
intl.NumberFormat.decimalPattern(localeName);
final String projectIdString = projectIdNumberFormat.format(projectId);

return 'draft #$projectIdString';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ignore: unused_import
import 'package:intl/intl.dart' as intl;

import 'app_localizations.dart';

// ignore_for_file: type=lint
Expand All @@ -25,8 +25,10 @@ class AppLocalizationsUk extends AppLocalizations {

@override
String notEnoughMediaToCreateMovie(int minMediaCountToProceed) {
final intl.NumberFormat minMediaCountToProceedNumberFormat = intl.NumberFormat.decimalPattern(localeName);
final String minMediaCountToProceedString = minMediaCountToProceedNumberFormat.format(minMediaCountToProceed);
final intl.NumberFormat minMediaCountToProceedNumberFormat =
intl.NumberFormat.decimalPattern(localeName);
final String minMediaCountToProceedString =
minMediaCountToProceedNumberFormat.format(minMediaCountToProceed);

return 'Додайте $minMediaCountToProceedString чи більше файлів, щоб створити відео';
}
Expand Down Expand Up @@ -102,15 +104,12 @@ class AppLocalizationsUk extends AppLocalizations {

@override
String orientationSelector(String orientation) {
String _temp0 = intl.Intl.selectLogic(
orientation,
{
'landscape': 'Пейзажна',
'portrait': 'Портретна',
'square': 'Квадратна',
'other': '',
},
);
String _temp0 = intl.Intl.selectLogic(orientation, {
'landscape': 'Пейзажна',
'portrait': 'Портретна',
'square': 'Квадратна',
'other': '',
});
return '$_temp0';
}

Expand All @@ -119,14 +118,11 @@ class AppLocalizationsUk extends AppLocalizations {

@override
String resizeSelector(String resize) {
String _temp0 = intl.Intl.selectLogic(
resize,
{
'contain': 'Показувати весь контент',
'cover': 'Вирізати під розмір',
'other': '',
},
);
String _temp0 = intl.Intl.selectLogic(resize, {
'contain': 'Показувати весь контент',
'cover': 'Вирізати під розмір',
'other': '',
});
return '$_temp0';
}

Expand All @@ -141,15 +137,17 @@ class AppLocalizationsUk extends AppLocalizations {

@override
String projectTitle(int projectId) {
final intl.NumberFormat projectIdNumberFormat = intl.NumberFormat.decimalPattern(localeName);
final intl.NumberFormat projectIdNumberFormat =
intl.NumberFormat.decimalPattern(localeName);
final String projectIdString = projectIdNumberFormat.format(projectId);

return 'проєкт #$projectIdString';
}

@override
String draftTitle(int projectId) {
final intl.NumberFormat projectIdNumberFormat = intl.NumberFormat.decimalPattern(localeName);
final intl.NumberFormat projectIdNumberFormat =
intl.NumberFormat.decimalPattern(localeName);
final String projectIdString = projectIdNumberFormat.format(projectId);

return 'чернетка #$projectIdString';
Expand Down
5 changes: 3 additions & 2 deletions lib/localizations.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'l10n/app_localizations.dart' as intl;
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart' as intl;
import 'package:slidemix/main.dart';

// flutter gen-l10n
Expand All @@ -20,7 +20,8 @@ class AppLocalizations {
static List<LocalizationsDelegate<dynamic>> get localizationsDelegates =>
intl.AppLocalizations.localizationsDelegates;

static List<Locale> get supportedLocales => intl.AppLocalizations.supportedLocales;
static List<Locale> get supportedLocales =>
intl.AppLocalizations.supportedLocales;
}

extension AppLocalizationsX on intl.AppLocalizations {
Expand Down
Loading