Skip to content

Commit a4eb328

Browse files
Merge pull request #537 from ksrvnjord/fix/upgrade-deprecated-features
Fix/upgrade deprecated features
2 parents 90f1fd2 + e88e513 commit a4eb328

File tree

90 files changed

+1126
-841
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+1126
-841
lines changed

.github/workflows/static-analysis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ jobs:
8484
version: ${{ env.dcm_version }}
8585

8686
- name: Dart Code Metrics Analyze
87-
if: github.ref == 'refs/heads/main'
8887
run: dcm analyze lib --fatal-style --fatal-performance --fatal-warnings --reporter=console
8988

9089
other:

.vscode/c_cpp_properties.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Win32",
5+
"includePath": [
6+
"${workspaceFolder}/**",
7+
"C:/Users/Vince/.vscode/extensions/ms-vscode.cpptools-1.21.6-win32-x64/bin/**"
8+
],
9+
"defines": [
10+
"_DEBUG",
11+
"UNICODE",
12+
"_UNICODE"
13+
],
14+
"windowsSdkVersion": "10.0.19041.0",
15+
"compilerPath": "cl.exe",
16+
"cStandard": "c17",
17+
"cppStandard": "c++17",
18+
"intelliSenseMode": "windows-msvc-x64"
19+
}
20+
],
21+
"version": 4
22+
}

android/app/build.gradle

+17-14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
id "dev.flutter.flutter-gradle-plugin"
5+
id "com.google.gms.google-services"
6+
id "com.google.firebase.crashlytics"
7+
}
8+
19
def localProperties = new Properties()
210
def localPropertiesFile = rootProject.file('local.properties')
311
if (localPropertiesFile.exists()) {
@@ -6,11 +14,6 @@ if (localPropertiesFile.exists()) {
614
}
715
}
816

9-
def flutterRoot = localProperties.getProperty('flutter.sdk')
10-
if (flutterRoot == null) {
11-
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12-
}
13-
1417
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
1518
if (flutterVersionCode == null) {
1619
throw new GradleException("Flutter versionCode not found. Define flutter.versionCode in the local.properties file.")
@@ -27,18 +30,11 @@ if (keystorePropertiesFile.exists()) {
2730
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
2831
}
2932

30-
apply plugin: 'com.android.application'
31-
// START: FlutterFire Configuration
32-
apply plugin: 'com.google.gms.google-services'
33-
apply plugin: 'com.google.firebase.crashlytics'
34-
// END: FlutterFire Configuration
35-
apply plugin: 'kotlin-android'
36-
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
37-
3833
android {
3934
compileSdkVersion 34
4035

4136
compileOptions {
37+
coreLibraryDesugaringEnabled true
4238
sourceCompatibility JavaVersion.VERSION_1_8
4339
targetCompatibility JavaVersion.VERSION_1_8
4440
}
@@ -90,15 +86,22 @@ android {
9086
signingConfig signingConfigs.release
9187
}
9288
}
89+
90+
namespace 'org.ksrvnjord.app'
9391
}
9492

9593
flutter {
9694
source '../..'
9795
}
9896

97+
tasks.withType(JavaCompile) {
98+
options.compilerArgs << "-Xlint:deprecation"
99+
}
100+
99101
dependencies {
100-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
101102
implementation 'com.google.firebase:firebase-appcheck-debug:17.1.1'
102103
implementation 'com.android.support:multidex:2.0.1'
104+
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.2'
105+
implementation 'androidx.appcompat:appcompat:1.3.1'
103106
}
104107

android/app/src/debug/AndroidManifest.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.ksrvnjord.app">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- Flutter needs it to communicate with the running application
43
to allow setting breakpoints, to provide hot reload, etc.
54
-->

android/app/src/main/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
xmlns:tools="http://schemas.android.com/tools"
3-
package="com.ksrvnjord.app">
3+
>
44

55
<uses-feature android:name="android.hardware.telephony"
66
android:required="false" />

android/app/src/profile/AndroidManifest.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.ksrvnjord.app">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- Flutter needs it to communicate with the running application
43
to allow setting breakpoints, to provide hot reload, etc.
54
-->

android/build.gradle

-18
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
buildscript {
2-
ext.kotlin_version = '1.9.21'
3-
4-
repositories {
5-
google()
6-
mavenCentral()
7-
}
8-
9-
dependencies {
10-
classpath 'com.android.tools.build:gradle:7.4.2'
11-
// START: FlutterFire Configuration
12-
classpath 'com.google.gms:google-services:4.4.0'
13-
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.9'
14-
// END: FlutterFire Configuration
15-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
16-
}
17-
}
18-
191
allprojects {
202
repositories {
213
google()

android/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
org.gradle.jvmargs=-Xmx4608m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
1+
org.gradle.jvmargs=-Xmx4608m -XX:MaxMetaspaceSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
22
android.useAndroidX=true
33
android.enableJetifier=true
44
org.gradle.daemon=true

android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-all.zip

android/settings.gradle

+26-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
1-
include ':app'
1+
pluginManagement {
2+
def flutterSdkPath = {
3+
def properties = new Properties()
4+
file("local.properties").withInputStream { properties.load(it) }
5+
def flutterSdkPath = properties.getProperty("flutter.sdk")
6+
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
7+
return flutterSdkPath
8+
}()
29

3-
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4-
def properties = new Properties()
10+
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
511

6-
assert localPropertiesFile.exists()
7-
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
12+
repositories {
13+
google()
14+
mavenCentral()
15+
gradlePluginPortal()
16+
}
17+
}
818

9-
def flutterSdkPath = properties.getProperty("flutter.sdk")
10-
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11-
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
19+
plugins {
20+
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21+
id "com.android.application" version "8.3.2" apply false
22+
id "org.jetbrains.kotlin.android" version "1.9.21" apply false
23+
// START: FlutterFire Configuration
24+
id "com.google.gms.google-services" version "4.4.0" apply false
25+
id "com.google.firebase.crashlytics" version "2.9.9" apply false
26+
// END: FlutterFire Configuration
27+
}
28+
29+
include ":app"

assets/images/njord_w.png

33.2 KB
Loading
-60 Bytes
Loading

ios/Podfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ target 'Runner' do
3131
use_frameworks!
3232
use_modular_headers!
3333
# Override Firebase SDK Version
34-
$FirebaseSDKVersion = '10.22.0'
34+
$FirebaseSDKVersion = '10.25.0'
3535

36-
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.22.0'
36+
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.25.0'
3737
pod 'FirebaseAppCheck'
3838

3939
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
@@ -46,6 +46,7 @@ post_install do |installer|
4646
config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
4747
config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
4848
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
49+
config.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES'
4950

5051
# Fix for latest Cocoapods bug. https://github.com/CocoaPods/CocoaPods/issues/12012#issuecomment-1659803356
5152
xcconfig_path = config.base_configuration_reference.real_path

0 commit comments

Comments
 (0)