From c2fdaa576222eb102656e04523bbd03ef695dbcc Mon Sep 17 00:00:00 2001 From: Hossein Yousefi Date: Thu, 29 Aug 2024 17:26:25 +0200 Subject: [PATCH] [jnigen] Remove Kotlin and Gradle dependencies / publish 0.11.0 (#1481) * Remove Kotlin dependency from package:jni * Remove dependency on gradle * Publish 0.11.0 --- pkgs/jni/CHANGELOG.md | 3 ++- pkgs/jni/android/build.gradle | 7 ------- pkgs/jni/pubspec.yaml | 2 +- pkgs/jnigen/CHANGELOG.md | 6 +++++- pkgs/jnigen/pubspec.yaml | 2 +- 5 files changed, 9 insertions(+), 11 deletions(-) diff --git a/pkgs/jni/CHANGELOG.md b/pkgs/jni/CHANGELOG.md index ce24bdb77..99699ccdd 100644 --- a/pkgs/jni/CHANGELOG.md +++ b/pkgs/jni/CHANGELOG.md @@ -1,7 +1,8 @@ -## 0.11.0-wip +## 0.11.0 - **Breaking Change** Removed `Jni.accessors`. - Made most `Jni.env` methods into leaf functions to speed up their execution. +- Removed the dependency on `kotlin_gradle_plugin`. ## 0.10.1 diff --git a/pkgs/jni/android/build.gradle b/pkgs/jni/android/build.gradle index ca8471f31..20bf84ac8 100644 --- a/pkgs/jni/android/build.gradle +++ b/pkgs/jni/android/build.gradle @@ -4,17 +4,10 @@ group 'com.github.dart_lang.jni' version '1.0' buildscript { - ext.kotlin_version = '1.6.10' repositories { google() mavenCentral() } - - dependencies { - // The Android Gradle Plugin knows how to build native code with the NDK. - classpath 'com.android.tools.build:gradle:7.1.2' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } } rootProject.allprojects { diff --git a/pkgs/jni/pubspec.yaml b/pkgs/jni/pubspec.yaml index b829b1a12..48dc04701 100644 --- a/pkgs/jni/pubspec.yaml +++ b/pkgs/jni/pubspec.yaml @@ -4,7 +4,7 @@ name: jni description: A library to access JNI from Dart and Flutter that acts as a support library for package:jnigen. -version: 0.11.0-wip +version: 0.11.0 repository: https://github.com/dart-lang/native/tree/main/pkgs/jni topics: diff --git a/pkgs/jnigen/CHANGELOG.md b/pkgs/jnigen/CHANGELOG.md index 2a17faf71..f9dfc070e 100644 --- a/pkgs/jnigen/CHANGELOG.md +++ b/pkgs/jnigen/CHANGELOG.md @@ -1,6 +1,10 @@ +## 0.11.0 + +- No changes. Keep major version in sync with `package:jni`. + ## 0.10.1 -- Add backticks to code references in doc comments. +- Added backticks to code references in doc comments. ## 0.10.0 diff --git a/pkgs/jnigen/pubspec.yaml b/pkgs/jnigen/pubspec.yaml index 9d24dc97f..a0b36699b 100644 --- a/pkgs/jnigen/pubspec.yaml +++ b/pkgs/jnigen/pubspec.yaml @@ -4,7 +4,7 @@ name: jnigen description: A Dart bindings generator for Java and Kotlin that uses JNI under the hood to interop with Java virtual machine. -version: 0.10.1 +version: 0.11.0 repository: https://github.com/dart-lang/native/tree/main/pkgs/jnigen environment: