Skip to content

Commit 109aed0

Browse files
committed
Add rebuild script
1 parent 5dfaed5 commit 109aed0

File tree

305 files changed

+3626
-2053
lines changed

Some content is hidden

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

305 files changed

+3626
-2053
lines changed

intro_flutter_gpu/codelab_rebuild.yaml

Lines changed: 2185 additions & 0 deletions
Large diffs are not rendered by default.

intro_flutter_gpu/step_01/.vscode/launch.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
"version": "0.2.0",
66
"configurations": [
77
{
8-
"name": "my_first_triangle",
8+
"name": "intro_flutter_gpu",
99
"request": "launch",
1010
"type": "dart"
1111
},
1212
{
13-
"name": "my_first_triangle (profile mode)",
13+
"name": "intro_flutter_gpu (profile mode)",
1414
"request": "launch",
1515
"type": "dart",
1616
"flutterMode": "profile"
1717
},
1818
{
19-
"name": "my_first_triangle (release mode)",
19+
"name": "intro_flutter_gpu (release mode)",
2020
"request": "launch",
2121
"type": "dart",
2222
"flutterMode": "release"
2323
}
2424
]
25-
}
25+
}

intro_flutter_gpu/step_01/LICENSE

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

intro_flutter_gpu/step_01/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1 @@
1-
include: package:flutter_lints/flutter.yaml
2-
3-
analyzer:
4-
language:
5-
strict-casts: true
6-
strict-inference: true
7-
8-
linter:
9-
rules:
10-
avoid_types_on_closure_parameters: true
11-
avoid_void_async: true
12-
cancel_subscriptions: true
13-
close_sinks: true
14-
directives_ordering: true
15-
package_prefixed_library_names: true
16-
prefer_relative_imports: true
17-
prefer_single_quotes: true
18-
test_types_in_equals: true
19-
throw_in_finally: true
20-
unawaited_futures: true
21-
unnecessary_breaks: true
22-
unnecessary_statements: true
23-
use_super_parameters: true
1+
include: ../../analysis_options.yaml

intro_flutter_gpu/step_02/android/app/build.gradle renamed to intro_flutter_gpu/step_01/android/app/build.gradle.kts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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.my_first_triangle"
9+
namespace = "com.example.intro_flutter_gpu"
1010
compileSdk = flutter.compileSdkVersion
1111
ndkVersion = flutter.ndkVersion
1212

@@ -16,12 +16,12 @@ android {
1616
}
1717

1818
kotlinOptions {
19-
jvmTarget = JavaVersion.VERSION_1_8
19+
jvmTarget = JavaVersion.VERSION_1_8.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.my_first_triangle"
24+
applicationId = "com.example.intro_flutter_gpu"
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
}

intro_flutter_gpu/step_01/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="my_first_triangle"
3+
android:label="intro_flutter_gpu"
44
android:name="${applicationName}"
55
android:icon="@mipmap/ic_launcher">
66
<activity
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.my_first_triangle
1+
package com.example.intro_flutter_gpu
22

33
import io.flutter.embedding.android.FlutterActivity
44

intro_flutter_gpu/step_01/android/build.gradle

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

0 commit comments

Comments
 (0)