Skip to content

Commit 052d93a

Browse files
committed
build(example): regenerate platform folders with latest Flutter templates
- Regenerated Android, iOS, macOS, Linux, Windows, and Web folders - Updated Android to use Kotlin DSL build files (.gradle.kts) - Updated iOS/macOS Podfiles to latest syntax - Modernized Linux CMake structure with runner subfolder - Updated Windows CMake and runner configuration - Preserved custom CDN script in web/index.html - Applied changes to both example and example_with_tests
1 parent c2a6c0c commit 052d93a

File tree

74 files changed

+817
-457
lines changed

Some content is hidden

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

74 files changed

+817
-457
lines changed

example/.metadata

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: "603104015dd692ea3403755b55d07813d5cf8965"
7+
revision: "19074d12f7eaf6a8180cd4036a430c1d76de904e"
88
channel: "stable"
99

1010
project_type: app
@@ -13,26 +13,26 @@ project_type: app
1313
migration:
1414
platforms:
1515
- platform: root
16-
create_revision: 603104015dd692ea3403755b55d07813d5cf8965
17-
base_revision: 603104015dd692ea3403755b55d07813d5cf8965
16+
create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
17+
base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
1818
- platform: android
19-
create_revision: 603104015dd692ea3403755b55d07813d5cf8965
20-
base_revision: 603104015dd692ea3403755b55d07813d5cf8965
19+
create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
20+
base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
2121
- platform: ios
22-
create_revision: 603104015dd692ea3403755b55d07813d5cf8965
23-
base_revision: 603104015dd692ea3403755b55d07813d5cf8965
22+
create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
23+
base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
2424
- platform: linux
25-
create_revision: 603104015dd692ea3403755b55d07813d5cf8965
26-
base_revision: 603104015dd692ea3403755b55d07813d5cf8965
25+
create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
26+
base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
2727
- platform: macos
28-
create_revision: 603104015dd692ea3403755b55d07813d5cf8965
29-
base_revision: 603104015dd692ea3403755b55d07813d5cf8965
28+
create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
29+
base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
3030
- platform: web
31-
create_revision: 603104015dd692ea3403755b55d07813d5cf8965
32-
base_revision: 603104015dd692ea3403755b55d07813d5cf8965
31+
create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
32+
base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
3333
- platform: windows
34-
create_revision: 603104015dd692ea3403755b55d07813d5cf8965
35-
base_revision: 603104015dd692ea3403755b55d07813d5cf8965
34+
create_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
35+
base_revision: 19074d12f7eaf6a8180cd4036a430c1d76de904e
3636

3737
# User provided section
3838

example/android/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ gradle-wrapper.jar
55
/gradlew.bat
66
/local.properties
77
GeneratedPluginRegistrant.java
8+
.cxx/
89

910
# Remember to never publicly share your keystore.
1011
# See https://flutter.dev/to/reference-keystore
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
plugins {
2-
id "com.android.application"
3-
id "kotlin-android"
2+
id("com.android.application")
3+
id("kotlin-android")
44
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
5-
id "dev.flutter.flutter-gradle-plugin"
5+
id("dev.flutter.flutter-gradle-plugin")
66
}
77

88
android {
9-
namespace = "com.example.example"
9+
namespace = "com.example.system_date_time_format_example"
1010
compileSdk = flutter.compileSdkVersion
1111
ndkVersion = flutter.ndkVersion
1212

1313
compileOptions {
14-
sourceCompatibility = JavaVersion.VERSION_1_8
15-
targetCompatibility = JavaVersion.VERSION_1_8
14+
sourceCompatibility = JavaVersion.VERSION_17
15+
targetCompatibility = JavaVersion.VERSION_17
1616
}
1717

1818
kotlinOptions {
19-
jvmTarget = JavaVersion.VERSION_1_8
19+
jvmTarget = JavaVersion.VERSION_17.toString()
2020
}
2121

2222
defaultConfig {
2323
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
24-
applicationId = "com.example.example"
24+
applicationId = "com.example.system_date_time_format_example"
2525
// You can update the following values to match your application needs.
2626
// For more information, see: https://flutter.dev/to/review-gradle-config.
2727
minSdk = flutter.minSdkVersion
@@ -34,7 +34,7 @@ android {
3434
release {
3535
// TODO: Add your own signing config for the release build.
3636
// Signing with the debug keys for now, so `flutter run --release` works.
37-
signingConfig = signingConfigs.debug
37+
signingConfig = signingConfigs.getByName("debug")
3838
}
3939
}
4040
}

example/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
22
<application
3-
android:label="example"
3+
android:label="system_date_time_format_example"
44
android:name="${applicationName}"
55
android:icon="@mipmap/ic_launcher">
66
<activity

example/android/app/src/main/kotlin/com/example/example/MainActivity.kt

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.example.system_date_time_format_example
2+
3+
import io.flutter.embedding.android.FlutterActivity
4+
5+
class MainActivity : FlutterActivity()

example/android/build.gradle

Lines changed: 0 additions & 18 deletions
This file was deleted.

example/android/build.gradle.kts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
allprojects {
2+
repositories {
3+
google()
4+
mavenCentral()
5+
}
6+
}
7+
8+
val newBuildDir: Directory =
9+
rootProject.layout.buildDirectory
10+
.dir("../../build")
11+
.get()
12+
rootProject.layout.buildDirectory.value(newBuildDir)
13+
14+
subprojects {
15+
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
16+
project.layout.buildDirectory.value(newSubprojectBuildDir)
17+
}
18+
subprojects {
19+
project.evaluationDependsOn(":app")
20+
}
21+
22+
tasks.register<Delete>("clean") {
23+
delete(rootProject.layout.buildDirectory)
24+
}

example/android/gradle.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
1+
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
22
android.useAndroidX=true
3-
android.enableJetifier=true

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-all.zip

0 commit comments

Comments
 (0)