Skip to content

Commit 022b972

Browse files
Merge branch '158-update-event-manager-examples'
2 parents 7853753 + 19aeda4 commit 022b972

172 files changed

Lines changed: 2482 additions & 1172 deletions

File tree

Some content is hidden

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

objectbox/example/flutter/event_management_tutorial/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ This is the project from the Event Management tutorial on YouTube:
66

77
## File structure
88
```
9-
\--objectbox_flutter_tutorial
10-
\--event_manager_base
9+
\--event_management_tutorial
10+
\--event_manager
1111
\--many_to_many
1212
```
1313

objectbox/example/flutter/event_management_tutorial/.gitignore renamed to objectbox/example/flutter/event_management_tutorial/event_manager/.gitignore

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,15 @@
1-
**/.dart_tool/
2-
**/.packages
3-
**/.pub/
4-
**/pubspec.lock
5-
**/build/
6-
7-
.DS_Store
8-
.idea/
9-
.vscode/
10-
*.iml
11-
12-
download/
13-
lib/*.dll
14-
*.dll
15-
lib/*.dylib
16-
lib/*.so
17-
lib/*.a
18-
19-
**/*.g.dart
20-
21-
# backup created by publish.sh - ignore to avoid publishing
22-
**/pubspec.yaml.original
23-
241
# Miscellaneous
252
*.class
263
*.log
274
*.pyc
285
*.swp
296
.DS_Store
307
.atom/
8+
.build/
319
.buildlog/
3210
.history
3311
.svn/
12+
.swiftpm/
3413
migrate_working_dir/
3514

3615
# IntelliJ related
@@ -48,15 +27,11 @@ migrate_working_dir/
4827
**/doc/api/
4928
**/ios/Flutter/.last_build_id
5029
.dart_tool/
51-
.flutter-plugins
5230
.flutter-plugins-dependencies
53-
.packages
5431
.pub-cache/
5532
.pub/
5633
/build/
57-
58-
# Web related
59-
lib/generated_plugin_registrant.dart
34+
/coverage/
6035

6136
# Symbolication related
6237
app.*.symbols
@@ -69,3 +44,7 @@ app.*.map.json
6944
/android/app/profile
7045
/android/app/release
7146

47+
# Not checking in Podfile.lock to avoid updating it for every
48+
# ObjectBox release and to always build with latest dependencies on CI.
49+
ios/Podfile.lock
50+
macos/Podfile.lock
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "924134a44c189315be2148659913dda1671cbe99"
8+
channel: "stable"
9+
10+
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: 924134a44c189315be2148659913dda1671cbe99
17+
base_revision: 924134a44c189315be2148659913dda1671cbe99
18+
- platform: android
19+
create_revision: 924134a44c189315be2148659913dda1671cbe99
20+
base_revision: 924134a44c189315be2148659913dda1671cbe99
21+
- platform: ios
22+
create_revision: 924134a44c189315be2148659913dda1671cbe99
23+
base_revision: 924134a44c189315be2148659913dda1671cbe99
24+
- platform: linux
25+
create_revision: 924134a44c189315be2148659913dda1671cbe99
26+
base_revision: 924134a44c189315be2148659913dda1671cbe99
27+
- platform: macos
28+
create_revision: 924134a44c189315be2148659913dda1671cbe99
29+
base_revision: 924134a44c189315be2148659913dda1671cbe99
30+
- platform: windows
31+
create_revision: 924134a44c189315be2148659913dda1671cbe99
32+
base_revision: 924134a44c189315be2148659913dda1671cbe99
33+
34+
# User provided section
35+
36+
# List of Local paths (relative to this file) that should be
37+
# ignored by the migrate tool.
38+
#
39+
# Files that are not part of the templates will be ignored by default.
40+
unmanaged_files:
41+
- 'lib/main.dart'
42+
- 'ios/Runner.xcodeproj/project.pbxproj'

objectbox/example/flutter/event_management_tutorial/event_manager/analysis_options.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ linter:
1313
# The lint rules applied to this project can be customized in the
1414
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
1515
# included above or to enable additional rules. A list of all available lints
16-
# and their documentation is published at
17-
# https://dart-lang.github.io/linter/lints/index.html.
16+
# and their documentation is published at https://dart.dev/lints.
1817
#
1918
# Instead of disabling a lint rule for the entire project in the
2019
# section below, it can also be suppressed for a single line of code
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
gradle-wrapper.jar
2-
/.gradle
3-
/captures/
4-
/gradlew
5-
/gradlew.bat
6-
/local.properties
2+
### These rules should only apply to current directory, but dart pub ignores rules that start with /
3+
.gradle
4+
captures/
5+
gradlew
6+
gradlew.bat
7+
local.properties
8+
###
79
GeneratedPluginRegistrant.java
10+
.cxx/
811

912
# Remember to never publicly share your keystore.
10-
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
13+
# See https://flutter.dev/to/reference-keystore
1114
key.properties
1215
**/*.keystore
1316
**/*.jks

objectbox/example/flutter/event_management_tutorial/event_manager/android/app/build.gradle

Lines changed: 0 additions & 71 deletions
This file was deleted.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
plugins {
2+
id("com.android.application")
3+
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
4+
id("dev.flutter.flutter-gradle-plugin")
5+
}
6+
7+
android {
8+
namespace = "com.example.event_manager_objectbox"
9+
compileSdk = flutter.compileSdkVersion
10+
ndkVersion = flutter.ndkVersion
11+
12+
compileOptions {
13+
sourceCompatibility = JavaVersion.VERSION_17
14+
targetCompatibility = JavaVersion.VERSION_17
15+
}
16+
17+
defaultConfig {
18+
applicationId = "com.example.event_manager_objectbox"
19+
// You can update the following values to match your application needs.
20+
// For more information, see: https://flutter.dev/to/review-gradle-config.
21+
minSdk = flutter.minSdkVersion
22+
targetSdk = flutter.targetSdkVersion
23+
versionCode = flutter.versionCode
24+
versionName = flutter.versionName
25+
}
26+
27+
buildTypes {
28+
release {
29+
// TODO: Add your own signing config for the release build.
30+
// Signing with the debug keys for now, so `flutter run --release` works.
31+
signingConfig = signingConfigs.getByName("debug")
32+
}
33+
}
34+
}
35+
36+
kotlin {
37+
compilerOptions {
38+
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
39+
}
40+
}
41+
42+
flutter {
43+
source = "../.."
44+
}

objectbox/example/flutter/event_management_tutorial/event_manager/android/app/src/debug/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
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.example.event_manager_objectbox">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- The INTERNET permission is required for development. Specifically,
43
the Flutter tool needs it to communicate with the running application
54
to allow setting breakpoints, to provide hot reload, etc.

objectbox/example/flutter/event_management_tutorial/event_manager/android/app/src/main/AndroidManifest.xml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.example.event_manager_objectbox">
3-
<application
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2+
<application
43
android:label="event_manager_objectbox"
54
android:name="${applicationName}"
65
android:icon="@mipmap/ic_launcher">
76
<activity
87
android:name=".MainActivity"
98
android:exported="true"
109
android:launchMode="singleTop"
10+
android:taskAffinity=""
1111
android:theme="@style/LaunchTheme"
1212
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
1313
android:hardwareAccelerated="true"
@@ -31,4 +31,15 @@
3131
android:name="flutterEmbedding"
3232
android:value="2" />
3333
</application>
34+
<!-- Required to query activities that can process text, see:
35+
https://developer.android.com/training/package-visibility and
36+
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
37+
38+
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
39+
<queries>
40+
<intent>
41+
<action android:name="android.intent.action.PROCESS_TEXT"/>
42+
<data android:mimeType="text/plain"/>
43+
</intent>
44+
</queries>
3445
</manifest>

objectbox/example/flutter/event_management_tutorial/event_manager/android/app/src/main/kotlin/com/example/event_manager_objectbox/MainActivity.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ package com.example.event_manager_objectbox
22

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

5-
class MainActivity: FlutterActivity() {
6-
}
5+
class MainActivity : FlutterActivity()

0 commit comments

Comments
 (0)