Skip to content

Commit 5fc415d

Browse files
committed
Upgrade to the latest
1 parent 8b4ee00 commit 5fc415d

File tree

23 files changed

+235
-216
lines changed

23 files changed

+235
-216
lines changed

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
name: Publish to pub.dev
7+
8+
on:
9+
push:
10+
tags:
11+
- '[0-9]+.[0-9]+.[0-9]+*'
12+
13+
jobs:
14+
publish:
15+
permissions:
16+
id-token: write # Required for authentication using OIDC
17+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
18+
# with:
19+
# working-directory: path/to/package/within/repository

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.1.0
2+
* Upgrade Flutter SDK to the latest
3+
14
## 1.0.1
25
* Fix Issue [#2](https://github.com/chandrabezzo/analytics_debugger/issues/2)
36

android/src/main/kotlin/com/solusibejo/analytics_debugger/AnalyticsDebuggerPlugin.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@ import io.flutter.plugin.common.MethodChannel
1212
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
1313
import io.flutter.plugin.common.MethodChannel.Result
1414

15-
/** AnalyticsDebuggerPlugin */
15+
/**
16+
* AnalyticsDebuggerPlugin
17+
*
18+
* This plugin is built exclusively for Flutter v2 Embedding API.
19+
* It implements FlutterPlugin and ActivityAware interfaces to provide
20+
* proper lifecycle management and activity-aware functionality.
21+
*
22+
* Note: This plugin does not support the legacy v1 Flutter Embedding.
23+
*/
1624
class AnalyticsDebuggerPlugin: FlutterPlugin, MethodCallHandler, ActivityAware {
1725
/// The MethodChannel that will the communication between Flutter and native Android
1826
///

example/.metadata

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,23 @@
11
# This file tracks properties of this Flutter project.
22
# Used by Flutter tool to assess capabilities and perform upgrades etc.
33
#
4-
# This file should be version controlled.
4+
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
8-
channel: stable
7+
revision: "edada7c56edf4a183c1735310e123c7f923584f1"
8+
channel: "stable"
99

1010
project_type: app
1111

1212
# Tracks metadata for the flutter migrate command
1313
migration:
1414
platforms:
1515
- platform: root
16-
create_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
17-
base_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
16+
create_revision: edada7c56edf4a183c1735310e123c7f923584f1
17+
base_revision: edada7c56edf4a183c1735310e123c7f923584f1
1818
- platform: android
19-
create_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
20-
base_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
21-
- platform: ios
22-
create_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
23-
base_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
24-
- platform: linux
25-
create_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
26-
base_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
27-
- platform: macos
28-
create_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
29-
base_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
30-
- platform: web
31-
create_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
32-
base_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
33-
- platform: windows
34-
create_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
35-
base_revision: b06b8b2710955028a6b562f5aa6fe62941d6febf
19+
create_revision: edada7c56edf4a183c1735310e123c7f923584f1
20+
base_revision: edada7c56edf4a183c1735310e123c7f923584f1
3621

3722
# User provided section
3823

example/android/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ gradle-wrapper.jar
55
/gradlew.bat
66
/local.properties
77
GeneratedPluginRegistrant.java
8+
.cxx/
89

910
# Remember to never publicly share your keystore.
10-
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11+
# See https://flutter.dev/to/reference-keystore
1112
key.properties
1213
**/*.keystore
1314
**/*.jks

example/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+
id("kotlin-android")
4+
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
5+
id("dev.flutter.flutter-gradle-plugin")
6+
}
7+
8+
android {
9+
namespace = "com.solusibejo.analytics_debugger.example"
10+
compileSdk = flutter.compileSdkVersion
11+
ndkVersion = flutter.ndkVersion
12+
13+
compileOptions {
14+
sourceCompatibility = JavaVersion.VERSION_11
15+
targetCompatibility = JavaVersion.VERSION_11
16+
}
17+
18+
kotlinOptions {
19+
jvmTarget = JavaVersion.VERSION_11.toString()
20+
}
21+
22+
defaultConfig {
23+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
24+
applicationId = "com.solusibejo.analytics_debugger.example"
25+
// You can update the following values to match your application needs.
26+
// For more information, see: https://flutter.dev/to/review-gradle-config.
27+
minSdk = flutter.minSdkVersion
28+
targetSdk = flutter.targetSdkVersion
29+
versionCode = flutter.versionCode
30+
versionName = flutter.versionName
31+
}
32+
33+
buildTypes {
34+
release {
35+
// TODO: Add your own signing config for the release build.
36+
// Signing with the debug keys for now, so `flutter run --release` works.
37+
signingConfig = signingConfigs.getByName("debug")
38+
}
39+
}
40+
}
41+
42+
flutter {
43+
source = "../.."
44+
}

example/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.solusibejo.analytics_debugger_example">
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.

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

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

0 commit comments

Comments
 (0)