Skip to content

Commit 76e15c2

Browse files
author
Houn
committed
1.3.10
1 parent a420a41 commit 76e15c2

File tree

19 files changed

+97
-82
lines changed

19 files changed

+97
-82
lines changed

particle-aa/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
## 1.3.6
12
## 1.3.4
23
Sync with particle-auth
34
## 1.3.2

particle-aa/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ android {
5050

5151
dependencies {
5252
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
53-
def sdkVersion = "1.3.3"
53+
def sdkVersion = "1.3.10"
5454
implementation("network.particle:aa-service:$sdkVersion")
5555
implementation("com.blankj:utilcodex:1.31.0")
5656
implementation("commons-codec:commons-codec:1.15")

particle-aa/pubspec.yaml

Lines changed: 57 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,77 @@
11
name: particle_aa
22
description: A flutter plugin project for particle aa
3-
version: 1.3.4
3+
version: 1.3.6
44
homepage: https://particle.network
55

66
environment:
7-
sdk: '>=3.0.0 <4.0.0'
8-
flutter: ">=3.10.6"
7+
sdk: '>=3.0.0 <4.0.0'
8+
flutter: '>=3.10.6'
99

1010
dependencies:
11-
flutter:
12-
sdk: flutter
13-
plugin_platform_interface: ^2.1.6
11+
flutter:
12+
sdk: flutter
13+
plugin_platform_interface: ^2.1.6
14+
15+
particle_auth: ^1.3.6
1416

15-
particle_auth: ^1.3.4
1617
# particle_auth:
1718
# path: ../particle-auth/
1819

1920
dev_dependencies:
20-
flutter_test:
21-
sdk: flutter
22-
flutter_lints: ^3.0.1
21+
flutter_test:
22+
sdk: flutter
23+
flutter_lints: ^3.0.1
2324

2425
# For information on the generic Dart part of this file, see the
2526
# following page: https://dart.dev/tools/pub/pubspec
2627

2728
# The following section is specific to Flutter packages.
2829
flutter:
29-
# This section identifies this Flutter project as a plugin project.
30-
# The 'pluginClass' specifies the class (in Java, Kotlin, Swift, Objective-C, etc.)
31-
# which should be registered in the plugin registry. This is required for
32-
# using method channels.
33-
# The Android 'package' specifies package in which the registered class is.
34-
# This is required for using method channels on Android.
35-
# The 'ffiPlugin' specifies that native code should be built and bundled.
36-
# This is required for using `dart:ffi`.
37-
# All these are used by the tooling to maintain consistency when
38-
# adding or updating assets for this project.
39-
plugin:
40-
platforms:
41-
android:
42-
package: network.particle.aa_plugin.particle_aa
43-
pluginClass: ParticleAAPlugin
44-
ios:
45-
pluginClass: ParticleAAPlugin
30+
# This section identifies this Flutter project as a plugin project.
31+
# The 'pluginClass' specifies the class (in Java, Kotlin, Swift, Objective-C, etc.)
32+
# which should be registered in the plugin registry. This is required for
33+
# using method channels.
34+
# The Android 'package' specifies package in which the registered class is.
35+
# This is required for using method channels on Android.
36+
# The 'ffiPlugin' specifies that native code should be built and bundled.
37+
# This is required for using `dart:ffi`.
38+
# All these are used by the tooling to maintain consistency when
39+
# adding or updating assets for this project.
40+
plugin:
41+
platforms:
42+
android:
43+
package: network.particle.aa_plugin.particle_aa
44+
pluginClass: ParticleAAPlugin
45+
ios:
46+
pluginClass: ParticleAAPlugin
4647

47-
# To add assets to your plugin package, add an assets section, like this:
48-
# assets:
49-
# - images/a_dot_burr.jpeg
50-
# - images/a_dot_ham.jpeg
51-
#
52-
# For details regarding assets in packages, see
53-
# https://flutter.dev/assets-and-images/#from-packages
54-
#
55-
# An image asset can refer to one or more resolution-specific "variants", see
56-
# https://flutter.dev/assets-and-images/#resolution-aware
48+
# To add assets to your plugin package, add an assets section, like this:
49+
# assets:
50+
# - images/a_dot_burr.jpeg
51+
# - images/a_dot_ham.jpeg
52+
#
53+
# For details regarding assets in packages, see
54+
# https://flutter.dev/assets-and-images/#from-packages
55+
#
56+
# An image asset can refer to one or more resolution-specific "variants", see
57+
# https://flutter.dev/assets-and-images/#resolution-aware
5758

58-
# To add custom fonts to your plugin package, add a fonts section here,
59-
# in this "flutter" section. Each entry in this list should have a
60-
# "family" key with the font family name, and a "fonts" key with a
61-
# list giving the asset and other descriptors for the font. For
62-
# example:
63-
# fonts:
64-
# - family: Schyler
65-
# fonts:
66-
# - asset: fonts/Schyler-Regular.ttf
67-
# - asset: fonts/Schyler-Italic.ttf
68-
# style: italic
69-
# - family: Trajan Pro
70-
# fonts:
71-
# - asset: fonts/TrajanPro.ttf
72-
# - asset: fonts/TrajanPro_Bold.ttf
73-
# weight: 700
74-
#
75-
# For details regarding fonts in packages, see
76-
# https://flutter.dev/custom-fonts/#from-packages
59+
# To add custom fonts to your plugin package, add a fonts section here,
60+
# in this "flutter" section. Each entry in this list should have a
61+
# "family" key with the font family name, and a "fonts" key with a
62+
# list giving the asset and other descriptors for the font. For
63+
# example:
64+
# fonts:
65+
# - family: Schyler
66+
# fonts:
67+
# - asset: fonts/Schyler-Regular.ttf
68+
# - asset: fonts/Schyler-Italic.ttf
69+
# style: italic
70+
# - family: Trajan Pro
71+
# fonts:
72+
# - asset: fonts/TrajanPro.ttf
73+
# - asset: fonts/TrajanPro_Bold.ttf
74+
# weight: 700
75+
#
76+
# For details regarding fonts in packages, see
77+
# https://flutter.dev/custom-fonts/#from-packages

particle-auth-core/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 1.3.6
2+
## 1.3.5
13
## 1.3.4
24
Sync with particle-auth
35
## 1.3.2

particle-auth-core/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ android {
5353

5454
dependencies {
5555
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
56-
def sdkVersion = "1.3.3"
56+
def sdkVersion = "1.3.10"
5757
implementation("network.particle:connect-common:$sdkVersion")
5858
implementation("network.particle:base-service:$sdkVersion")
5959
implementation("network.particle:mpc-core:$sdkVersion")

particle-auth-core/android/src/main/kotlin/com/particleauthcore/AuthCoreBridge.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ object AuthCoreBridge {
2626
fun connect(jwt: String, result: MethodChannel.Result) {
2727
AuthCore.connect(jwt, object : AuthCoreServiceCallback<UserInfo> {
2828
override fun success(output: UserInfo) {
29-
result.success(FlutterCallBack.success(output).toGson())
29+
try {
30+
result.success(FlutterCallBack.success(output).toGson())
31+
}catch (_:Exception){
32+
33+
}
3034
}
3135

3236
override fun failure(errMsg: ErrorInfo) {

particle-auth-core/example/android/app/build.gradle

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,13 @@ android {
5454
versionCode flutterVersionCode.toInteger()
5555
versionName flutterVersionName
5656

57-
manifestPlaceholders["PN_PROJECT_ID"] = "7399450c-7c80-4fa9-b61a-58c815a821a2"
58-
manifestPlaceholders["PN_PROJECT_CLIENT_KEY"] = "cip1DpxvzNMYekotllYMmiTVtpNClCaCEccjSkqw"
59-
manifestPlaceholders["PN_APP_ID"] = "67673549-a6c9-44d8-a393-e9af7b0edccf"
57+
// manifestPlaceholders["PN_PROJECT_ID"] = "7399450c-7c80-4fa9-b61a-58c815a821a2"
58+
// manifestPlaceholders["PN_PROJECT_CLIENT_KEY"] = "cip1DpxvzNMYekotllYMmiTVtpNClCaCEccjSkqw"
59+
// manifestPlaceholders["PN_APP_ID"] = "67673549-a6c9-44d8-a393-e9af7b0edccf"
60+
61+
manifestPlaceholders["PN_PROJECT_ID"] = "b0991b94-8219-4499-bf8e-d92ce6087f72"
62+
manifestPlaceholders["PN_PROJECT_CLIENT_KEY"] = "cEpW3oDxg8JoFK2WR4OT04d0mMffdBRPiQIbu0xF"
63+
manifestPlaceholders["PN_APP_ID"] = "91d7cefb-2ee9-4770-882d-5cd03f4cc729"
6064

6165
}
6266

particle-auth-core/example/lib/auth_core_demo/auth_core_logic.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class AuthCoreLogic {
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sImlhdCI6MTcwMjYyMTQ0NCwiZXhwIjoxNzAyNjU3NDQ0LCJzdWIiOiJhdXRoMHw2MzAzMjE0YjZmNjE1NjM2YWM5MTdmMWIiLCJzaWQiOiJTZnlfVElJeVVDUFJMcmlrd0sxZDRnMXVkN1ROaWRlUSJ9.HUE08zLrlIcNVW2y8m_8QBv2fW9nixnujoBesjWkVdxiXjCzmmdqUMsPWip6vevPFgEri2-O6MAIJQwSIvfXinv3kLiBCtToqtnaF_BgROo3w6hUhHU6kW6WIP9qww3BnvVNgPbmHzgjGKJmhPNYet6_i7UMrlbyx6ZRNrDg7UiPbkmpWGqqIj8506dCcScbD2PF3dUPfweI1L7J6yQfCBB_aPsrtGGll2J4K97FzNLFjabT--lG0xDDvYiFpkjv0agdV7kkX9IQsp53BfQF1FA2o6hUanLlwCR0v-ON6RYMn-Cj92LGhp8-ng6wwuGcx_JJ0ocgY6rbrKwWZa-gPw"; // paste your jwt
2929
final userInfo = await ParticleAuthCore.connect(jwt);
3030
print("connect: $userInfo");
3131
showToast("connect: $userInfo");

particle-auth-core/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: particle_auth_core
22
description: A flutter plugin project for particle auth core
3-
version: 1.3.4
3+
version: 1.3.6
44
homepage: https://particle.network
55

66
environment:
@@ -11,7 +11,7 @@ dependencies:
1111
flutter:
1212
sdk: flutter
1313
plugin_platform_interface: ^2.1.6
14-
particle_auth: ^1.3.4
14+
particle_auth: ^1.3.6
1515
# particle_auth:
1616
# path: ../particle-auth/
1717

particle-auth/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
## 1.3.6
12
## 1.3.4
23
Fix typo bugs
34
## 1.3.2

0 commit comments

Comments
 (0)