From a838014d2930b84e05aa3877582b7d84792d1b8d Mon Sep 17 00:00:00 2001 From: rahulraorefyne Date: Sun, 11 Aug 2024 07:03:30 +0530 Subject: [PATCH 1/2] namespace added in gradle with compile sdk bump --- .gitignore | 1 + android/build.gradle | 12 ++-- android/src/main/AndroidManifest.xml | 4 +- example_swift/.flutter-plugins | 7 ++- example_swift/.flutter-plugins-dependencies | 2 +- example_swift/pubspec.lock | 70 ++++++++++++++------- example_swift/test/widget_test.dart | 2 +- ios/webengage_flutter.podspec | 2 +- pubspec.yaml | 2 +- 9 files changed, 67 insertions(+), 35 deletions(-) diff --git a/.gitignore b/.gitignore index da4b62d..1a8ba37 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ .pub/ build/ +.fvm/ .idea .vscode diff --git a/android/build.gradle b/android/build.gradle index dac1458..edf9769 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,5 +1,5 @@ group 'com.webengage.webengage_plugin' -version '1.5.0' +version '1.5.1' buildscript { repositories { @@ -8,7 +8,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:3.5.0' + classpath 'com.android.tools.build:gradle:3.5.4' } } @@ -22,7 +22,11 @@ rootProject.allprojects { apply plugin: 'com.android.library' android { - compileSdkVersion 33 + if (project.android.hasProperty("namespace")) { + namespace("com.webengage.webengage_plugin") + } + + compileSdkVersion 34 defaultConfig { minSdkVersion 21 @@ -57,5 +61,5 @@ String readVersion() { } dependencies { - api 'com.webengage:android-sdk:[4,)' + api 'com.webengage:android-sdk:4.16.0' } diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index 0f4ea45..cd09758 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ - + + =3.1.0-185.0.dev <4.0.0" - flutter: ">=2.8.0" + dart: ">=3.3.0 <4.0.0" + flutter: ">=3.18.0-18.0.pre.54" diff --git a/example_swift/test/widget_test.dart b/example_swift/test/widget_test.dart index 0b11f65..aebc4b1 100644 --- a/example_swift/test/widget_test.dart +++ b/example_swift/test/widget_test.dart @@ -13,7 +13,7 @@ import 'package:flutter_demo/main.dart'; void main() { testWidgets('Counter increments smoke test', (WidgetTester tester) async { // Build our app and trigger a frame. - await tester.pumpWidget(const MyApp()); + await tester.pumpWidget(MyApp()); // Verify that our counter starts at 0. expect(find.text('0'), findsOneWidget); diff --git a/ios/webengage_flutter.podspec b/ios/webengage_flutter.podspec index d404219..7fd3b0c 100644 --- a/ios/webengage_flutter.podspec +++ b/ios/webengage_flutter.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'webengage_flutter' - s.version = '1.5.0' + s.version = '1.5.1' s.summary = 'WebEngage Flutter iOS SDK.' s.description = <<-DESC WebEngage Flutter iOS SDK. diff --git a/pubspec.yaml b/pubspec.yaml index 44dcb2e..d15f3bf 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: webengage_flutter description: The WebEngage Flutter SDK offers solutions for mobile customer engagement, analytics, and retention. -version: 1.5.0 +version: 1.5.1 homepage: https://webengage.com/ repository: https://github.com/WebEngage/webengage-flutter From 5ad5c3d85103f935ec8a6a6a6d2ecdf0933db91e Mon Sep 17 00:00:00 2001 From: rahulraorefyne Date: Sun, 11 Aug 2024 15:59:10 +0530 Subject: [PATCH 2/2] gradle upgraded to 8.2 --- android/build.gradle | 4 +++- android/gradle/wrapper/gradle-wrapper.properties | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index edf9769..cc19885 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -8,7 +8,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:3.5.4' + classpath 'com.android.tools.build:gradle:8.2.2' } } @@ -27,9 +27,11 @@ android { } compileSdkVersion 34 + compileSdk 34 defaultConfig { minSdkVersion 21 + minSdk 21 manifestPlaceholders = [we_fl_version: readVersion()] versionCode 1 versionName "1.0" diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index ffed3a2..1acfbc6 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,6 @@ +#Sun Aug 11 15:48:17 IST 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists