Compare commits
12 Commits
olajcsere-
...
v5.1.6fix
| Author | SHA1 | Date | |
|---|---|---|---|
| 5c682b16e6 | |||
| 5b37056052 | |||
|
|
c49a221e19 | ||
|
|
084eb00e5b | ||
|
|
e3e1983265 | ||
|
|
125453c8ab | ||
|
|
9a018c6f37 | ||
|
|
b107a9a800 | ||
|
|
ed5f1d3e05 | ||
|
|
c1d9da6c58 | ||
|
|
ef6aa0142b | ||
|
|
a0336b9122 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -95,3 +95,4 @@ refilc/android/*key.properties
|
||||
tool_logs/build/*.log
|
||||
tool_logs/d8dx_fix/*.log
|
||||
tool_logs/pub_fix/*.log
|
||||
refilc/android/app/key.jks
|
||||
|
||||
@@ -33,11 +33,15 @@ if (flutterVersionName == null) {
|
||||
|
||||
def keystoreProperties = new Properties()
|
||||
def keystorePropertiesFile = rootProject.file("key.properties")
|
||||
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
||||
}
|
||||
|
||||
def debugKeystoreProperties = new Properties()
|
||||
def debugKeystorePropertiesFile = rootProject.file("debugkey.properties")
|
||||
debugKeystoreProperties.load(new FileInputStream(debugKeystorePropertiesFile))
|
||||
if (debugKeystorePropertiesFile.exists()) {
|
||||
debugKeystoreProperties.load(new FileInputStream(debugKeystorePropertiesFile))
|
||||
}
|
||||
|
||||
// magical code that fixes builds
|
||||
subprojects {
|
||||
@@ -58,7 +62,7 @@ android {
|
||||
ndkVersion "27.2.12479018"
|
||||
|
||||
// compileSdkVersion rootProject.ext.compileSdkVersion
|
||||
compileSdkVersion 34
|
||||
compileSdkVersion 35
|
||||
|
||||
sourceSets {
|
||||
main.java.srcDirs += 'src/main/kotlin'
|
||||
@@ -100,10 +104,11 @@ android {
|
||||
|
||||
signingConfigs {
|
||||
debug {
|
||||
// Use the default Android debug keystore to avoid alias mismatches
|
||||
keyAlias "androiddebugkey"
|
||||
keyPassword debugKeystoreProperties['keyPassword']
|
||||
storeFile file(debugKeystoreProperties['storeFile'])
|
||||
storePassword debugKeystoreProperties['storePassword']
|
||||
storeFile file(System.properties['user.home'] + "/.android/debug.keystore")
|
||||
storePassword "android"
|
||||
keyPassword "android"
|
||||
}
|
||||
|
||||
release {
|
||||
@@ -149,7 +154,7 @@ dependencies {
|
||||
implementation 'joda-time:joda-time:2.9.4'
|
||||
androidTestImplementation 'androidx.test:runner:1.1.1'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
|
||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3'
|
||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.4'
|
||||
implementation 'androidx.window:window:1.0.0'
|
||||
implementation 'androidx.window:window-java:1.0.0'
|
||||
}
|
||||
|
||||
@@ -47,8 +47,8 @@ subprojects {
|
||||
afterEvaluate {project ->
|
||||
if (project.plugins.hasPlugin('android') || project.plugins.hasPlugin('android-library')) {
|
||||
android {
|
||||
compileSdkVersion 34
|
||||
buildToolsVersion '31.0.0'
|
||||
compileSdkVersion 35
|
||||
buildToolsVersion '35.0.0'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,13 +34,13 @@ import 'package:connectivity_plus/connectivity_plus.dart';
|
||||
|
||||
class FilcAPI {
|
||||
// base url
|
||||
static const baseUrl = "https://firka.app/api/v1";
|
||||
static const baseUrl = "https://api.firka.app/api/v1";
|
||||
|
||||
// unused schools list
|
||||
static const schoolList = "0.0.0.0";
|
||||
|
||||
// news endpoint
|
||||
static const news = "$baseUrl/news/";
|
||||
static const news = "$baseUrl/news/legacy";
|
||||
|
||||
// analytics endpoint
|
||||
static const config = "$baseUrl/config/";
|
||||
|
||||
@@ -42,7 +42,7 @@ class StatusProvider extends ChangeNotifier {
|
||||
|
||||
void _handleDNSFailure() {
|
||||
try {
|
||||
InternetAddress.lookup('api.refilc.hu').then((status) {
|
||||
InternetAddress.lookup('firka.app').then((status) { // koszonjuk klima a hardcoded checket
|
||||
if (status.isEmpty) {
|
||||
if (!_stack.contains(Status.network)) {
|
||||
_stack.remove(Status.apiError);
|
||||
|
||||
@@ -34,13 +34,13 @@ dependencies:
|
||||
html: ^0.15.5
|
||||
open_filex: ^4.6.0
|
||||
path_provider: ^2.1.5
|
||||
permission_handler: ^11.3.1
|
||||
permission_handler: ^12.0.0
|
||||
share_plus: ^10.1.4
|
||||
connectivity_plus: ^6.1.3
|
||||
flutter_displaymode: ^0.6.0
|
||||
quick_actions: ^1.1.0
|
||||
animated_list_plus: ^0.5.2
|
||||
dynamic_color: ^1.7.0
|
||||
dynamic_color: 1.7.0
|
||||
material_color_utilities: ^0.11.1
|
||||
crypto: ^3.0.6
|
||||
elegant_notification: ^2.4.1
|
||||
|
||||
@@ -42,14 +42,17 @@ class TimetableController extends ChangeNotifier {
|
||||
|
||||
static DateTime _getYearStart(int year) {
|
||||
var s1 = DateTime(year, DateTime.september, 1);
|
||||
if (s1.weekday == 6) {
|
||||
s1.add(const Duration(days: 2));
|
||||
} else if (s1.weekday == 7) {
|
||||
s1.add(const Duration(days: 1));
|
||||
if (s1.weekday == DateTime.saturday) {
|
||||
s1 = s1.add(const Duration(days: 2, hours: 2));
|
||||
} else if (s1.weekday == DateTime.sunday) {
|
||||
s1 = s1.add(const Duration(days: 1, hours: 2));
|
||||
} else {
|
||||
s1 = s1.add(const Duration(hours: 2));
|
||||
}
|
||||
return s1;
|
||||
}
|
||||
|
||||
|
||||
// Jump shortcuts
|
||||
Future<void> next(BuildContext context) =>
|
||||
jump(Week.fromId(currentWeekId + 1), context: context);
|
||||
|
||||
Reference in New Issue
Block a user