From 21cf09d7529cd902165f89585868076a3bd9d1a0 Mon Sep 17 00:00:00 2001 From: Dongmin Yu Date: Sun, 17 Mar 2024 01:00:12 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=94=96=20release=20v0.2.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 18 ++++++++ .../com/stepcounterexample/MainActivity.kt | 22 ++++----- .../com/stepcounterexample/MainApplication.kt | 46 +++++++++---------- package.json | 2 +- 4 files changed, 53 insertions(+), 35 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8b7c38..99ac0d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## [0.2.5](https://github.com/AndrewDongminYoo/react-native-step-counter/compare/v0.2.4...v0.2.5) (2024-03-16) + +### Bug Fixes + +- ➖ remove peer dependencies in package.json ([b3e7191](https://github.com/AndrewDongminYoo/react-native-step-counter/commit/b3e7191dca62b6ba7b68fd7f39a2a18d30b004a6)) +- ➖ remove yarn-specific `resolutions` field that doesn't apply to npm developers ([c16ea2f](https://github.com/AndrewDongminYoo/react-native-step-counter/commit/c16ea2f05aff5af6365cc72107160f5d2d045211)) +- ⬆️ upgrade gradle versions and removing deprecated settings ([d962093](https://github.com/AndrewDongminYoo/react-native-step-counter/commit/d96209328ae95699d3cf829a34d6a2d376bf7c69)) +- 🐛 merge forked branch 'Ugur-Atakan/main' ([952c196](https://github.com/AndrewDongminYoo/react-native-step-counter/commit/952c196318c6be1276716f1803043dde8cf8cc1f)), closes [#40](https://github.com/AndrewDongminYoo/react-native-step-counter/issues/40) +- 📌 cocoapods 1.15 introduced a bug which break the build ([a634d22](https://github.com/AndrewDongminYoo/react-native-step-counter/commit/a634d2236a53cc8d63136c9500913f236c9e7979)) + +### Performance Improvements + +- ➕ add @react-native/typescript-config package as dev dependencies ([7845558](https://github.com/AndrewDongminYoo/react-native-step-counter/commit/7845558ed61c0a2aba92adddd21ab9e947b3558e)) +- ⬆️ apply audit and upgrade flags across packages ([ab8a509](https://github.com/AndrewDongminYoo/react-native-step-counter/commit/ab8a509ad1e15e87e436d689b84524247e28e659)) +- ⬆️ replaced `metro-react-native-babel-preset` to `@react-native/babel-preset` ([2b10ae5](https://github.com/AndrewDongminYoo/react-native-step-counter/commit/2b10ae5922a8523ff42005435953e7f28182cbe3)) +- ⬆️ replaced `metro-react-native-babel-preset` to `@react-native/babel-preset` ([26b1e19](https://github.com/AndrewDongminYoo/react-native-step-counter/commit/26b1e19e765854cf73a469fceba6f9fd86cceb67)) +- 📦️ upgrade npm packages version ([fa0b47b](https://github.com/AndrewDongminYoo/react-native-step-counter/commit/fa0b47b6420a662c0fdc8ab2e6cb4ee39419819e)) + ## [0.2.4](https://github.com/AndrewDongminYoo/react-native-step-counter/compare/v0.2.2...v0.2.4) (2024-01-06) ### Performance Improvements diff --git a/example/android/app/src/main/java/com/stepcounterexample/MainActivity.kt b/example/android/app/src/main/java/com/stepcounterexample/MainActivity.kt index 3a725b5..02ca14e 100644 --- a/example/android/app/src/main/java/com/stepcounterexample/MainActivity.kt +++ b/example/android/app/src/main/java/com/stepcounterexample/MainActivity.kt @@ -6,15 +6,15 @@ import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnable import com.facebook.react.defaults.DefaultReactActivityDelegate class MainActivity : ReactActivity() { - /** - * Returns the name of the main component registered from JavaScript. This is used to schedule - * rendering of the component. - */ - override fun getMainComponentName(): String = "StepCounterExample" + /** + * Returns the name of the main component registered from JavaScript. This is used to schedule + * rendering of the component. + */ + override fun getMainComponentName(): String = "StepCounterExample" - /** - * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate] - * which allows you to enable New Architecture with a single boolean flags [fabricEnabled] - */ - override fun createReactActivityDelegate(): ReactActivityDelegate = DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled) -} + /** + * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate] + * which allows you to enable New Architecture with a single boolean flags [fabricEnabled] + */ + override fun createReactActivityDelegate(): ReactActivityDelegate = DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled) +} \ No newline at end of file diff --git a/example/android/app/src/main/java/com/stepcounterexample/MainApplication.kt b/example/android/app/src/main/java/com/stepcounterexample/MainApplication.kt index 27c9181..d7d3aa1 100644 --- a/example/android/app/src/main/java/com/stepcounterexample/MainApplication.kt +++ b/example/android/app/src/main/java/com/stepcounterexample/MainApplication.kt @@ -13,32 +13,32 @@ import com.facebook.react.flipper.ReactNativeFlipper import com.facebook.soloader.SoLoader class MainApplication : Application(), ReactApplication { - override val reactNativeHost: ReactNativeHost = - object : DefaultReactNativeHost(this) { - override fun getPackages(): List = - PackageList(this).packages.apply { - // Packages that cannot be autolinked yet can be added manually here, for example: - // add(MyReactNativePackage()) - } + override val reactNativeHost: ReactNativeHost = + object : DefaultReactNativeHost(this) { + override fun getPackages(): List = + PackageList(this).packages.apply { + // Packages that cannot be autolinked yet can be added manually here, for example: + // add(MyReactNativePackage()) + } - override fun getJSMainModuleName(): String = "index" + override fun getJSMainModuleName(): String = "index" - override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG + override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG - override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED - override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED - } + override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED + override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED + } - override val reactHost: ReactHost - get() = getDefaultReactHost(this.applicationContext, reactNativeHost) + override val reactHost: ReactHost + get() = getDefaultReactHost(this.applicationContext, reactNativeHost) - override fun onCreate() { - super.onCreate() - SoLoader.init(this, false) - if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { - // If you opted-in for the New Architecture, we load the native entry point for this app. - load() + override fun onCreate() { + super.onCreate() + SoLoader.init(this, false) + if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { + // If you opted-in for the New Architecture, we load the native entry point for this app. + load() + } + ReactNativeFlipper.initializeFlipper(this, reactNativeHost.reactInstanceManager) } - ReactNativeFlipper.initializeFlipper(this, reactNativeHost.reactInstanceManager) - } -} +} \ No newline at end of file diff --git a/package.json b/package.json index 4d5a845..9306a3d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@dongminyu/react-native-step-counter", "displayName": "react-native-step-counter", - "version": "0.2.4", + "version": "0.2.5", "summary": "It is a multi-platform library that combines CoreMotionSensor from iOS with SensorEventListener from Android.", "description": "This library provides an interface for tracking the number of steps taken by the user in a React Native app.", "main": "lib/commonjs/index.js",