├── .editorconfig
├── .gitignore
├── .vscode
└── settings.json
├── LICENSE
├── README.md
├── UpgradeGuide.md
├── guides
├── social_login
│ ├── .gitignore
│ ├── .metadata
│ ├── README.md
│ ├── analysis_options.yaml
│ ├── android
│ │ ├── .gitignore
│ │ ├── app
│ │ │ ├── build.gradle
│ │ │ └── src
│ │ │ │ ├── debug
│ │ │ │ └── AndroidManifest.xml
│ │ │ │ ├── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ ├── kotlin
│ │ │ │ │ └── com
│ │ │ │ │ │ └── example
│ │ │ │ │ │ └── social_login
│ │ │ │ │ │ └── MainActivity.kt
│ │ │ │ └── res
│ │ │ │ │ ├── drawable-v21
│ │ │ │ │ └── launch_background.xml
│ │ │ │ │ ├── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── values-night
│ │ │ │ │ └── styles.xml
│ │ │ │ │ └── values
│ │ │ │ │ └── styles.xml
│ │ │ │ └── profile
│ │ │ │ └── AndroidManifest.xml
│ │ ├── build.gradle
│ │ ├── gradle.properties
│ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ └── gradle-wrapper.properties
│ │ └── settings.gradle
│ ├── ios
│ │ ├── .gitignore
│ │ ├── Flutter
│ │ │ ├── AppFrameworkInfo.plist
│ │ │ ├── Debug.xcconfig
│ │ │ └── Release.xcconfig
│ │ ├── Podfile
│ │ ├── Podfile.lock
│ │ ├── Runner.xcodeproj
│ │ │ ├── project.pbxproj
│ │ │ ├── project.xcworkspace
│ │ │ │ ├── contents.xcworkspacedata
│ │ │ │ └── xcshareddata
│ │ │ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ │ │ └── WorkspaceSettings.xcsettings
│ │ │ └── xcshareddata
│ │ │ │ └── xcschemes
│ │ │ │ └── Runner.xcscheme
│ │ ├── Runner.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ │ └── WorkspaceSettings.xcsettings
│ │ ├── Runner
│ │ │ ├── AppDelegate.swift
│ │ │ ├── Assets.xcassets
│ │ │ │ ├── AppIcon.appiconset
│ │ │ │ │ ├── Contents.json
│ │ │ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ │ │ ├── Icon-App-20x20@1x.png
│ │ │ │ │ ├── Icon-App-20x20@2x.png
│ │ │ │ │ ├── Icon-App-20x20@3x.png
│ │ │ │ │ ├── Icon-App-29x29@1x.png
│ │ │ │ │ ├── Icon-App-29x29@2x.png
│ │ │ │ │ ├── Icon-App-29x29@3x.png
│ │ │ │ │ ├── Icon-App-40x40@1x.png
│ │ │ │ │ ├── Icon-App-40x40@2x.png
│ │ │ │ │ ├── Icon-App-40x40@3x.png
│ │ │ │ │ ├── Icon-App-60x60@2x.png
│ │ │ │ │ ├── Icon-App-60x60@3x.png
│ │ │ │ │ ├── Icon-App-76x76@1x.png
│ │ │ │ │ ├── Icon-App-76x76@2x.png
│ │ │ │ │ └── Icon-App-83.5x83.5@2x.png
│ │ │ │ └── LaunchImage.imageset
│ │ │ │ │ ├── Contents.json
│ │ │ │ │ ├── LaunchImage.png
│ │ │ │ │ ├── LaunchImage@2x.png
│ │ │ │ │ ├── LaunchImage@3x.png
│ │ │ │ │ └── README.md
│ │ │ ├── Base.lproj
│ │ │ │ ├── LaunchScreen.storyboard
│ │ │ │ └── Main.storyboard
│ │ │ ├── Info.plist
│ │ │ ├── ParticleNetwork-Info.plist
│ │ │ └── Runner-Bridging-Header.h
│ │ └── RunnerTests
│ │ │ └── RunnerTests.swift
│ ├── lib
│ │ └── main.dart
│ └── pubspec.yaml
└── social_login_aa
│ ├── .gitignore
│ ├── .metadata
│ ├── README.md
│ ├── analysis_options.yaml
│ ├── android
│ ├── .gitignore
│ ├── app
│ │ ├── build.gradle
│ │ └── src
│ │ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ │ ├── main
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── kotlin
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── social_login
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── res
│ │ │ │ ├── drawable-v21
│ │ │ │ └── launch_background.xml
│ │ │ │ ├── drawable
│ │ │ │ └── launch_background.xml
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── values-night
│ │ │ │ └── styles.xml
│ │ │ │ └── values
│ │ │ │ └── styles.xml
│ │ │ └── profile
│ │ │ └── AndroidManifest.xml
│ ├── build.gradle
│ ├── gradle.properties
│ ├── gradle
│ │ └── wrapper
│ │ │ └── gradle-wrapper.properties
│ └── settings.gradle
│ ├── ios
│ ├── .gitignore
│ ├── Flutter
│ │ ├── AppFrameworkInfo.plist
│ │ ├── Debug.xcconfig
│ │ └── Release.xcconfig
│ ├── Podfile
│ ├── Podfile.lock
│ ├── Runner.xcodeproj
│ │ ├── project.pbxproj
│ │ ├── project.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ │ └── WorkspaceSettings.xcsettings
│ │ └── xcshareddata
│ │ │ └── xcschemes
│ │ │ └── Runner.xcscheme
│ ├── Runner.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── Runner
│ │ ├── AppDelegate.swift
│ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ │ ├── Icon-App-20x20@1x.png
│ │ │ │ ├── Icon-App-20x20@2x.png
│ │ │ │ ├── Icon-App-20x20@3x.png
│ │ │ │ ├── Icon-App-29x29@1x.png
│ │ │ │ ├── Icon-App-29x29@2x.png
│ │ │ │ ├── Icon-App-29x29@3x.png
│ │ │ │ ├── Icon-App-40x40@1x.png
│ │ │ │ ├── Icon-App-40x40@2x.png
│ │ │ │ ├── Icon-App-40x40@3x.png
│ │ │ │ ├── Icon-App-60x60@2x.png
│ │ │ │ ├── Icon-App-60x60@3x.png
│ │ │ │ ├── Icon-App-76x76@1x.png
│ │ │ │ ├── Icon-App-76x76@2x.png
│ │ │ │ └── Icon-App-83.5x83.5@2x.png
│ │ │ └── LaunchImage.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchImage.png
│ │ │ │ ├── LaunchImage@2x.png
│ │ │ │ ├── LaunchImage@3x.png
│ │ │ │ └── README.md
│ │ ├── Base.lproj
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── Main.storyboard
│ │ ├── Info.plist
│ │ ├── ParticleNetwork-Info.plist
│ │ └── Runner-Bridging-Header.h
│ └── RunnerTests
│ │ └── RunnerTests.swift
│ ├── lib
│ └── main.dart
│ └── pubspec.yaml
├── images
└── connectkit-mobile.svg
├── particle-aa
├── .gitignore
├── .metadata
├── CHANGELOG.md
├── LICENSE
├── README.md
├── analysis_options.yaml
├── android
│ ├── .gitignore
│ ├── build.gradle
│ ├── consumer-rules.pro
│ ├── settings.gradle
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ └── kotlin
│ │ └── network
│ │ └── particle
│ │ └── aa_plugin
│ │ ├── ParticleAAPlugin.kt
│ │ ├── model
│ │ └── AAInitData.kt
│ │ ├── module
│ │ └── AABridge.kt
│ │ └── utils
│ │ ├── Base58Utils.kt
│ │ ├── EncodeUtils.kt
│ │ └── HexUtils.kt
├── example
│ ├── .gitignore
│ ├── README.md
│ ├── analysis_options.yaml
│ ├── android
│ │ ├── .gitignore
│ │ ├── app
│ │ │ ├── build.gradle
│ │ │ └── src
│ │ │ │ ├── debug
│ │ │ │ └── AndroidManifest.xml
│ │ │ │ ├── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ ├── kotlin
│ │ │ │ │ └── network
│ │ │ │ │ │ └── particle
│ │ │ │ │ │ └── auth_plugin
│ │ │ │ │ │ └── particle_auth_example
│ │ │ │ │ │ └── MainActivity.kt
│ │ │ │ └── res
│ │ │ │ │ ├── drawable-v21
│ │ │ │ │ └── launch_background.xml
│ │ │ │ │ ├── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── values-night
│ │ │ │ │ └── styles.xml
│ │ │ │ │ └── values
│ │ │ │ │ └── styles.xml
│ │ │ │ └── profile
│ │ │ │ └── AndroidManifest.xml
│ │ ├── build.gradle
│ │ ├── gradle.properties
│ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ └── gradle-wrapper.properties
│ │ └── settings.gradle
│ ├── ios
│ │ ├── .gitignore
│ │ ├── Flutter
│ │ │ ├── AppFrameworkInfo.plist
│ │ │ ├── Debug.xcconfig
│ │ │ └── Release.xcconfig
│ │ ├── Podfile
│ │ ├── Podfile.lock
│ │ ├── Runner.xcodeproj
│ │ │ ├── project.pbxproj
│ │ │ ├── project.xcworkspace
│ │ │ │ ├── contents.xcworkspacedata
│ │ │ │ └── xcshareddata
│ │ │ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ │ │ └── WorkspaceSettings.xcsettings
│ │ │ └── xcshareddata
│ │ │ │ └── xcschemes
│ │ │ │ └── Runner.xcscheme
│ │ ├── Runner.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ │ └── WorkspaceSettings.xcsettings
│ │ └── Runner
│ │ │ ├── AppDelegate.swift
│ │ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ │ ├── Icon-App-20x20@1x.png
│ │ │ │ ├── Icon-App-20x20@2x.png
│ │ │ │ ├── Icon-App-20x20@3x.png
│ │ │ │ ├── Icon-App-29x29@1x.png
│ │ │ │ ├── Icon-App-29x29@2x.png
│ │ │ │ ├── Icon-App-29x29@3x.png
│ │ │ │ ├── Icon-App-40x40@1x.png
│ │ │ │ ├── Icon-App-40x40@2x.png
│ │ │ │ ├── Icon-App-40x40@3x.png
│ │ │ │ ├── Icon-App-60x60@2x.png
│ │ │ │ ├── Icon-App-60x60@3x.png
│ │ │ │ ├── Icon-App-76x76@1x.png
│ │ │ │ ├── Icon-App-76x76@2x.png
│ │ │ │ └── Icon-App-83.5x83.5@2x.png
│ │ │ └── LaunchImage.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchImage.png
│ │ │ │ ├── LaunchImage@2x.png
│ │ │ │ ├── LaunchImage@3x.png
│ │ │ │ └── README.md
│ │ │ ├── Base.lproj
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── Main.storyboard
│ │ │ ├── Info.plist
│ │ │ ├── ParticleNetwork-Info.plist
│ │ │ └── Runner-Bridging-Header.h
│ ├── lib
│ │ ├── aa_demo
│ │ │ ├── aa_auth_core_logic.dart
│ │ │ ├── aa_connect_logic.dart
│ │ │ ├── aa_demo_auth_core.dart
│ │ │ ├── aa_demo_connect.dart
│ │ │ ├── item_button.dart
│ │ │ ├── select_chain_page.dart
│ │ │ └── select_wallet_type.dart
│ │ ├── main.dart
│ │ ├── mock
│ │ │ ├── test_account.dart
│ │ │ └── transaction_mock.dart
│ │ └── theme.dart
│ └── pubspec.yaml
├── ios
│ ├── .gitignore
│ ├── Assets
│ │ └── .gitkeep
│ ├── Classes
│ │ ├── General.swift
│ │ ├── ParticleAAPlugin.swift
│ │ └── ShareAA.swift
│ ├── ParticleNetwork-Info.plist
│ └── particle_aa.podspec
├── lib
│ └── particle_aa.dart
└── pubspec.yaml
├── particle-auth-core
├── .gitignore
├── .metadata
├── .vscode
│ └── settings.json
├── CHANGELOG.md
├── LICENSE
├── README.md
├── analysis_options.yaml
├── android
│ ├── .gitignore
│ ├── build.gradle
│ ├── consumer-rules.pro
│ ├── gradle.properties
│ ├── gradle
│ │ └── wrapper
│ │ │ ├── gradle-wrapper.jar
│ │ │ └── gradle-wrapper.properties
│ ├── gradlew
│ ├── gradlew.bat
│ ├── settings.gradle
│ └── src
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ └── kotlin
│ │ │ └── network
│ │ │ └── particle
│ │ │ └── authcore_flutter
│ │ │ ├── AuthCoreBridge.kt
│ │ │ ├── ParticleAuthCorePlugin.kt
│ │ │ ├── module
│ │ │ ├── ChainData.kt
│ │ │ └── ConnectData.kt
│ │ │ └── utils
│ │ │ ├── Base58Utils.java
│ │ │ ├── BridgeScope.kt
│ │ │ ├── EncodeUtils.kt
│ │ │ ├── HexUtils.kt
│ │ │ └── MessageProcess.kt
│ │ └── test
│ │ └── kotlin
│ │ └── particle
│ │ └── network
│ │ └── particle_auth_core
│ │ └── ParticleAuthCorePluginTest.kt
├── example
│ ├── .gitignore
│ ├── README.md
│ ├── analysis_options.yaml
│ ├── android
│ │ ├── .gitignore
│ │ ├── app
│ │ │ ├── build.gradle
│ │ │ └── src
│ │ │ │ ├── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ ├── kotlin
│ │ │ │ │ └── network
│ │ │ │ │ │ └── particle
│ │ │ │ │ │ └── authcore
│ │ │ │ │ │ └── example
│ │ │ │ │ │ └── MainActivity.kt
│ │ │ │ └── res
│ │ │ │ │ ├── drawable-v21
│ │ │ │ │ └── launch_background.xml
│ │ │ │ │ ├── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── values-night
│ │ │ │ │ └── styles.xml
│ │ │ │ │ └── values
│ │ │ │ │ └── styles.xml
│ │ │ │ └── profile
│ │ │ │ └── AndroidManifest.xml
│ │ ├── build.gradle
│ │ ├── gradle.properties
│ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ └── gradle-wrapper.properties
│ │ └── settings.gradle
│ ├── ios
│ │ ├── .gitignore
│ │ ├── Flutter
│ │ │ ├── AppFrameworkInfo.plist
│ │ │ ├── Debug.xcconfig
│ │ │ └── Release.xcconfig
│ │ ├── Podfile
│ │ ├── Podfile.lock
│ │ ├── Runner.xcodeproj
│ │ │ ├── project.pbxproj
│ │ │ ├── project.xcworkspace
│ │ │ │ ├── contents.xcworkspacedata
│ │ │ │ └── xcshareddata
│ │ │ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ │ │ └── WorkspaceSettings.xcsettings
│ │ │ └── xcshareddata
│ │ │ │ └── xcschemes
│ │ │ │ └── Runner.xcscheme
│ │ ├── Runner.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ │ └── WorkspaceSettings.xcsettings
│ │ ├── Runner
│ │ │ ├── AppDelegate.swift
│ │ │ ├── Assets.xcassets
│ │ │ │ ├── AppIcon.appiconset
│ │ │ │ │ ├── Contents.json
│ │ │ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ │ │ ├── Icon-App-20x20@1x.png
│ │ │ │ │ ├── Icon-App-20x20@2x.png
│ │ │ │ │ ├── Icon-App-20x20@3x.png
│ │ │ │ │ ├── Icon-App-29x29@1x.png
│ │ │ │ │ ├── Icon-App-29x29@2x.png
│ │ │ │ │ ├── Icon-App-29x29@3x.png
│ │ │ │ │ ├── Icon-App-40x40@1x.png
│ │ │ │ │ ├── Icon-App-40x40@2x.png
│ │ │ │ │ ├── Icon-App-40x40@3x.png
│ │ │ │ │ ├── Icon-App-60x60@2x.png
│ │ │ │ │ ├── Icon-App-60x60@3x.png
│ │ │ │ │ ├── Icon-App-76x76@1x.png
│ │ │ │ │ ├── Icon-App-76x76@2x.png
│ │ │ │ │ └── Icon-App-83.5x83.5@2x.png
│ │ │ │ └── LaunchImage.imageset
│ │ │ │ │ ├── Contents.json
│ │ │ │ │ ├── LaunchImage.png
│ │ │ │ │ ├── LaunchImage@2x.png
│ │ │ │ │ ├── LaunchImage@3x.png
│ │ │ │ │ └── README.md
│ │ │ ├── Base.lproj
│ │ │ │ ├── LaunchScreen.storyboard
│ │ │ │ └── Main.storyboard
│ │ │ ├── Info.plist
│ │ │ ├── ParticleNetwork-Info.plist
│ │ │ └── Runner-Bridging-Header.h
│ │ └── RunnerTests
│ │ │ └── RunnerTests.swift
│ ├── lib
│ │ ├── auth_core_demo
│ │ │ ├── auth_core_demo.dart
│ │ │ ├── auth_core_logic.dart
│ │ │ └── select_chain_page.dart
│ │ ├── main.dart
│ │ ├── mock
│ │ │ ├── test_account.dart
│ │ │ └── transaction_mock.dart
│ │ └── theme.dart
│ └── pubspec.yaml
├── ios
│ ├── .gitignore
│ ├── Assets
│ │ └── .gitkeep
│ ├── Classes
│ │ ├── General.swift
│ │ ├── ParticleAuthCorePlugin.swift
│ │ └── ShareAuthCore.swift
│ └── particle_auth_core.podspec
├── lib
│ ├── evm.dart
│ ├── particle_auth_core.dart
│ └── solana.dart
└── pubspec.yaml
├── particle-base
├── .gitignore
├── .metadata
├── CHANGELOG.md
├── LICENSE
├── README.md
├── analysis_options.yaml
├── android
│ ├── .gitignore
│ ├── build.gradle
│ ├── consumer-rules.pro
│ ├── gradle
│ │ └── wrapper
│ │ │ ├── gradle-wrapper.jar
│ │ │ └── gradle-wrapper.properties
│ ├── gradlew
│ ├── gradlew.bat
│ ├── settings.gradle
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ └── kotlin
│ │ └── network
│ │ └── particle
│ │ └── base_flutter
│ │ ├── ParticleBasePlugin.kt
│ │ ├── model
│ │ ├── BaseInitData.kt
│ │ ├── ChainData.kt
│ │ ├── FlutterCallBack.kt
│ │ ├── FlutterErrorMessage.kt
│ │ ├── InitData.kt
│ │ ├── LoginData.kt
│ │ ├── RpcUrl.kt
│ │ ├── SignTypedData.kt
│ │ └── TransactionParams.kt
│ │ ├── module
│ │ └── BaseBridge.kt
│ │ └── utils
│ │ ├── Base58Utils.kt
│ │ ├── ChainUtils.kt
│ │ ├── EncodeUtils.kt
│ │ └── HexUtils.kt
├── example
│ ├── .gitignore
│ ├── README.md
│ ├── analysis_options.yaml
│ ├── android
│ │ ├── .gitignore
│ │ ├── app
│ │ │ ├── build.gradle
│ │ │ └── src
│ │ │ │ ├── debug
│ │ │ │ └── AndroidManifest.xml
│ │ │ │ ├── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ ├── kotlin
│ │ │ │ │ └── network
│ │ │ │ │ │ └── particle
│ │ │ │ │ │ └── base_plugin
│ │ │ │ │ │ └── particle_base_example
│ │ │ │ │ │ └── MainActivity.kt
│ │ │ │ └── res
│ │ │ │ │ ├── drawable-v21
│ │ │ │ │ └── launch_background.xml
│ │ │ │ │ ├── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── values-night
│ │ │ │ │ └── styles.xml
│ │ │ │ │ └── values
│ │ │ │ │ └── styles.xml
│ │ │ │ └── profile
│ │ │ │ └── AndroidManifest.xml
│ │ ├── build.gradle
│ │ ├── gradle.properties
│ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ └── gradle-wrapper.properties
│ │ └── settings.gradle
│ ├── ios
│ │ ├── .gitignore
│ │ ├── Flutter
│ │ │ ├── AppFrameworkInfo.plist
│ │ │ ├── Debug.xcconfig
│ │ │ └── Release.xcconfig
│ │ ├── ParticleNetwork-Info.plist
│ │ ├── Podfile
│ │ ├── Runner.xcodeproj
│ │ │ ├── project.pbxproj
│ │ │ ├── project.xcworkspace
│ │ │ │ ├── contents.xcworkspacedata
│ │ │ │ └── xcshareddata
│ │ │ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ │ │ └── WorkspaceSettings.xcsettings
│ │ │ └── xcshareddata
│ │ │ │ └── xcschemes
│ │ │ │ └── Runner.xcscheme
│ │ ├── Runner.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ │ └── WorkspaceSettings.xcsettings
│ │ └── Runner
│ │ │ ├── AppDelegate.swift
│ │ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ │ ├── Icon-App-20x20@1x.png
│ │ │ │ ├── Icon-App-20x20@2x.png
│ │ │ │ ├── Icon-App-20x20@3x.png
│ │ │ │ ├── Icon-App-29x29@1x.png
│ │ │ │ ├── Icon-App-29x29@2x.png
│ │ │ │ ├── Icon-App-29x29@3x.png
│ │ │ │ ├── Icon-App-40x40@1x.png
│ │ │ │ ├── Icon-App-40x40@2x.png
│ │ │ │ ├── Icon-App-40x40@3x.png
│ │ │ │ ├── Icon-App-60x60@2x.png
│ │ │ │ ├── Icon-App-60x60@3x.png
│ │ │ │ ├── Icon-App-76x76@1x.png
│ │ │ │ ├── Icon-App-76x76@2x.png
│ │ │ │ └── Icon-App-83.5x83.5@2x.png
│ │ │ └── LaunchImage.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchImage.png
│ │ │ │ ├── LaunchImage@2x.png
│ │ │ │ ├── LaunchImage@3x.png
│ │ │ │ └── README.md
│ │ │ ├── Base.lproj
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── Main.storyboard
│ │ │ ├── Info.plist
│ │ │ ├── ParticleNetwork-Info.plist
│ │ │ └── Runner-Bridging-Header.h
│ ├── lib
│ │ ├── base_demo
│ │ │ ├── base_demo.dart
│ │ │ ├── base_logic.dart
│ │ │ ├── custom_bottom_sheet.dart
│ │ │ ├── item_button.dart
│ │ │ └── select_chain_page.dart
│ │ ├── main.dart
│ │ └── mock
│ │ │ ├── test_account.dart
│ │ │ ├── token.dart
│ │ │ └── transaction_mock.dart
│ ├── package-lock.json
│ └── pubspec.yaml
├── ios
│ ├── .gitignore
│ ├── Assets
│ │ └── .gitkeep
│ ├── Classes
│ │ ├── General.swift
│ │ ├── ParticleBasePlugin.swift
│ │ └── ShareBase.swift
│ └── particle_base.podspec
├── lib
│ ├── model
│ │ ├── aa_fee_mode.dart
│ │ ├── account_name.dart
│ │ ├── chain_info.dart
│ │ ├── fiat_coin.dart
│ │ ├── gas_fee_level.dart
│ │ ├── ios_modal_present_style.dart
│ │ ├── language.dart
│ │ ├── login_info.dart
│ │ ├── particle_info.dart
│ │ ├── security_account_config.dart
│ │ ├── smart_account_config.dart
│ │ ├── typeddata_version.dart
│ │ ├── user_info.dart
│ │ ├── user_info.g.dart
│ │ └── user_interface_style.dart
│ ├── network
│ │ ├── model
│ │ │ ├── rpc_error.dart
│ │ │ ├── rpc_error.g.dart
│ │ │ ├── rpc_url_entity.dart
│ │ │ ├── rpc_url_entity.g.dart
│ │ │ ├── serialize_sol_transaction.dart
│ │ │ ├── serialize_sol_transaction.g.dart
│ │ │ ├── serialize_spl_token_transaction.dart
│ │ │ ├── serialize_spl_token_transaction.g.dart
│ │ │ ├── serialize_wsol_transaction.dart
│ │ │ └── serialize_wsol_transaction.g.dart
│ │ └── net
│ │ │ ├── particle_rpc.dart
│ │ │ ├── request_body_entity.dart
│ │ │ ├── request_body_entity.g.dart
│ │ │ ├── response.dart
│ │ │ ├── response.g.dart
│ │ │ ├── rest_client.dart
│ │ │ └── rest_client.g.dart
│ └── particle_base.dart
└── pubspec.yaml
├── particle-connect
├── .gitignore
├── .metadata
├── CHANGELOG.md
├── LICENSE
├── README.md
├── analysis_options.yaml
├── android
│ ├── .gitignore
│ ├── build.gradle
│ ├── consumer-rules.pro
│ ├── settings.gradle
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ └── kotlin
│ │ └── network
│ │ └── particle
│ │ └── connect_plugin
│ │ ├── ParticleConnectPlugin.kt
│ │ ├── model
│ │ ├── AccountNew.kt
│ │ ├── AddCustomTokenData.java
│ │ ├── AddSwitchChain.kt
│ │ ├── ChainData.java
│ │ ├── ConnectData.kt
│ │ ├── ConnectSignData.java
│ │ ├── EvmTransData.java
│ │ ├── FlutterCallBack.java
│ │ ├── FlutterErrorMessage.java
│ │ ├── InitData.java
│ │ ├── LoginData.java
│ │ ├── RpcUrl.java
│ │ ├── SignTypedData.java
│ │ ├── SolTransData.java
│ │ ├── SplTokenData.java
│ │ ├── TokenNFTs.java
│ │ └── TransReqOptData.java
│ │ ├── module
│ │ └── ConnectBridge.kt
│ │ └── utils
│ │ ├── Base58Utils.java
│ │ ├── BridgeScope.kt
│ │ ├── EncodeUtils.kt
│ │ ├── HexUtils.kt
│ │ └── MessageProcess.kt
├── example
│ ├── .gitignore
│ ├── README.md
│ ├── analysis_options.yaml
│ ├── android
│ │ ├── .gitignore
│ │ ├── app
│ │ │ ├── build.gradle
│ │ │ └── src
│ │ │ │ ├── debug
│ │ │ │ └── AndroidManifest.xml
│ │ │ │ ├── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ ├── kotlin
│ │ │ │ │ └── network
│ │ │ │ │ │ └── particle
│ │ │ │ │ │ └── connect_plugin
│ │ │ │ │ │ └── example
│ │ │ │ │ │ └── MainActivity.kt
│ │ │ │ └── res
│ │ │ │ │ ├── drawable-v21
│ │ │ │ │ └── launch_background.xml
│ │ │ │ │ ├── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── values-night
│ │ │ │ │ └── styles.xml
│ │ │ │ │ └── values
│ │ │ │ │ └── styles.xml
│ │ │ │ └── profile
│ │ │ │ └── AndroidManifest.xml
│ │ ├── build.gradle
│ │ ├── gradle.properties
│ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ └── gradle-wrapper.properties
│ │ └── settings.gradle
│ ├── assets
│ │ └── images
│ │ │ └── powerby_particle_network.webp
│ ├── ios
│ │ ├── .gitignore
│ │ ├── Flutter
│ │ │ ├── AppFrameworkInfo.plist
│ │ │ ├── Debug.xcconfig
│ │ │ └── Release.xcconfig
│ │ ├── Podfile
│ │ ├── Podfile.lock
│ │ ├── Runner.xcodeproj
│ │ │ ├── project.pbxproj
│ │ │ ├── project.xcworkspace
│ │ │ │ ├── contents.xcworkspacedata
│ │ │ │ └── xcshareddata
│ │ │ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ │ │ └── WorkspaceSettings.xcsettings
│ │ │ └── xcshareddata
│ │ │ │ └── xcschemes
│ │ │ │ └── Runner.xcscheme
│ │ ├── Runner.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ │ └── WorkspaceSettings.xcsettings
│ │ └── Runner
│ │ │ ├── AppDelegate.swift
│ │ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ │ ├── Icon-App-20x20@1x.png
│ │ │ │ ├── Icon-App-20x20@2x.png
│ │ │ │ ├── Icon-App-20x20@3x.png
│ │ │ │ ├── Icon-App-29x29@1x.png
│ │ │ │ ├── Icon-App-29x29@2x.png
│ │ │ │ ├── Icon-App-29x29@3x.png
│ │ │ │ ├── Icon-App-40x40@1x.png
│ │ │ │ ├── Icon-App-40x40@2x.png
│ │ │ │ ├── Icon-App-40x40@3x.png
│ │ │ │ ├── Icon-App-60x60@2x.png
│ │ │ │ ├── Icon-App-60x60@3x.png
│ │ │ │ ├── Icon-App-76x76@1x.png
│ │ │ │ ├── Icon-App-76x76@2x.png
│ │ │ │ └── Icon-App-83.5x83.5@2x.png
│ │ │ └── LaunchImage.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchImage.png
│ │ │ │ ├── LaunchImage@2x.png
│ │ │ │ ├── LaunchImage@3x.png
│ │ │ │ └── README.md
│ │ │ ├── Base.lproj
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── Main.storyboard
│ │ │ ├── Info.plist
│ │ │ ├── ParticleNetwork-Info.plist
│ │ │ └── Runner-Bridging-Header.h
│ ├── lib
│ │ ├── connect_demo
│ │ │ ├── connect_logic.dart
│ │ │ ├── connect_with_wallet.dart
│ │ │ ├── connected_wallet_oprate.dart
│ │ │ └── select_chain_page.dart
│ │ ├── main.dart
│ │ ├── mock
│ │ │ ├── test_account.dart
│ │ │ └── transaction_mock.dart
│ │ └── theme.dart
│ └── pubspec.yaml
├── ios
│ ├── .gitignore
│ ├── Assets
│ │ └── .gitkeep
│ ├── Classes
│ │ ├── General.swift
│ │ ├── ParticleConnectPlugin.swift
│ │ └── ShareConnect.swift
│ └── particle_connect.podspec
├── lib
│ ├── model
│ │ ├── account.dart
│ │ ├── connect_kit_config.dart
│ │ ├── connect_kit_config.g.dart
│ │ ├── dapp_meta_data.dart
│ │ ├── particle_connect_config.dart
│ │ ├── rpc_url_config.dart
│ │ ├── sign_in_with_ethereum.dart
│ │ ├── wallet_ready_state.dart
│ │ └── wallet_type.dart
│ └── particle_connect.dart
└── pubspec.yaml
├── particle-wallet
├── .gitignore
├── .metadata
├── CHANGELOG.md
├── LICENSE
├── README.md
├── analysis_options.yaml
├── android
│ ├── .gitignore
│ ├── build.gradle
│ ├── consumer-rules.pro
│ ├── settings.gradle
│ └── src
│ │ └── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ └── network
│ │ │ └── particle
│ │ │ └── wallet_plugin
│ │ │ ├── ParticleWalletPlugin.kt
│ │ │ ├── module
│ │ │ ├── SupportChain.java
│ │ │ └── WalletBridge.kt
│ │ │ ├── ui
│ │ │ └── FlutterLoginOptActivity.kt
│ │ │ └── utils
│ │ │ └── WalletScope.kt
│ │ └── res
│ │ ├── layout
│ │ └── activity_flutter_login_opt.xml
│ │ └── values
│ │ ├── styles.xml
│ │ └── themes.xml
├── example
│ ├── .gitignore
│ ├── README.md
│ ├── analysis_options.yaml
│ ├── android
│ │ ├── .gitignore
│ │ ├── app
│ │ │ ├── build.gradle
│ │ │ └── src
│ │ │ │ ├── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ ├── kotlin
│ │ │ │ │ └── network
│ │ │ │ │ │ └── particle
│ │ │ │ │ │ └── wallet_plugin
│ │ │ │ │ │ └── example
│ │ │ │ │ │ └── MainActivity.kt
│ │ │ │ └── res
│ │ │ │ │ ├── drawable-v21
│ │ │ │ │ └── launch_background.xml
│ │ │ │ │ ├── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── values-night
│ │ │ │ │ └── styles.xml
│ │ │ │ │ └── values
│ │ │ │ │ └── styles.xml
│ │ │ │ └── profile
│ │ │ │ └── AndroidManifest.xml
│ │ ├── build.gradle
│ │ ├── gradle.properties
│ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ └── gradle-wrapper.properties
│ │ └── settings.gradle
│ ├── ios
│ │ ├── .gitignore
│ │ ├── Flutter
│ │ │ ├── AppFrameworkInfo.plist
│ │ │ ├── Debug.xcconfig
│ │ │ └── Release.xcconfig
│ │ ├── Podfile
│ │ ├── Podfile.lock
│ │ ├── Runner.xcodeproj
│ │ │ ├── project.pbxproj
│ │ │ ├── project.xcworkspace
│ │ │ │ ├── contents.xcworkspacedata
│ │ │ │ └── xcshareddata
│ │ │ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ │ │ └── WorkspaceSettings.xcsettings
│ │ │ └── xcshareddata
│ │ │ │ └── xcschemes
│ │ │ │ └── Runner.xcscheme
│ │ ├── Runner.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ │ └── IDEWorkspaceChecks.plist
│ │ └── Runner
│ │ │ ├── AppDelegate.swift
│ │ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ │ ├── Icon-App-20x20@1x.png
│ │ │ │ ├── Icon-App-20x20@2x.png
│ │ │ │ ├── Icon-App-20x20@3x.png
│ │ │ │ ├── Icon-App-29x29@1x.png
│ │ │ │ ├── Icon-App-29x29@2x.png
│ │ │ │ ├── Icon-App-29x29@3x.png
│ │ │ │ ├── Icon-App-40x40@1x.png
│ │ │ │ ├── Icon-App-40x40@2x.png
│ │ │ │ ├── Icon-App-40x40@3x.png
│ │ │ │ ├── Icon-App-60x60@2x.png
│ │ │ │ ├── Icon-App-60x60@3x.png
│ │ │ │ ├── Icon-App-76x76@1x.png
│ │ │ │ ├── Icon-App-76x76@2x.png
│ │ │ │ └── Icon-App-83.5x83.5@2x.png
│ │ │ └── LaunchImage.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchImage.png
│ │ │ │ ├── LaunchImage@2x.png
│ │ │ │ ├── LaunchImage@3x.png
│ │ │ │ └── README.md
│ │ │ ├── Base.lproj
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── Main.storyboard
│ │ │ ├── Info.plist
│ │ │ ├── ParticleNetwork-Info.plist
│ │ │ └── Runner-Bridging-Header.h
│ ├── lib
│ │ ├── main.dart
│ │ ├── mock
│ │ │ ├── test_account.dart
│ │ │ └── transaction_mock.dart
│ │ ├── pages
│ │ │ ├── connect_demo
│ │ │ │ ├── connect_demo.dart
│ │ │ │ ├── connect_logic.dart
│ │ │ │ ├── select_chain_page.dart
│ │ │ │ └── select_wallet_type.dart
│ │ │ └── wallet_demo
│ │ │ │ ├── custom_bottom_sheet.dart
│ │ │ │ ├── wallet_demo.dart
│ │ │ │ └── wallet_logic.dart
│ │ └── theme.dart
│ └── pubspec.yaml
├── ios
│ ├── .gitignore
│ ├── Assets
│ │ └── .gitkeep
│ ├── Classes
│ │ ├── General.swift
│ │ ├── ParticleWalletPlugin.swift
│ │ └── ShareWallet.swift
│ └── particle_wallet.podspec
├── lib
│ ├── model
│ │ ├── buy_crypto_config.dart
│ │ ├── theme.dart
│ │ ├── wallet_display.dart
│ │ └── wallet_meta_data.dart
│ └── particle_wallet.dart
└── pubspec.yaml
└── pub.py
/.editorconfig:
--------------------------------------------------------------------------------
1 | # editorconfig.org
2 | root = true
3 |
4 | [*]
5 | indent_style = space
6 | end_of_line = lf
7 | charset = utf-8
8 | trim_trailing_whitespace = true
9 | insert_final_newline = true
10 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://www.dartlang.org/guides/libraries/private-files
2 |
3 | .DS_Store
4 |
5 | # Files and directories created by pub
6 | .dart_tool/
7 | .packages
8 | build/
9 | # If you're building an application, you may want to check-in your pubspec.lock
10 | pubspec.lock
11 |
12 | # Directory created by dartdoc
13 | # If you don't generate documentation locally you can remove this line.
14 | doc/api/
15 |
16 | # Avoid committing generated Javascript files:
17 | *.dart.js
18 | *.info.json # Produced by the --dump-info flag.
19 | *.js # When generated by dart2js. Don't specify *.js if your
20 | # project includes source files written in JavaScript.
21 | *.js_
22 | *.js.deps
23 | *.js.map
24 | *.lock
25 | .idea/*
26 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "dart.openDevTools": "flutter",
3 | "dart.lineLength": 80,
4 | "[dart]": {
5 | "editor.formatOnSave": true,
6 | "editor.formatOnType": true,
7 | "editor.rulers": [],
8 | "editor.selectionHighlight": false,
9 | "editor.suggestSelection": "first",
10 | "editor.tabCompletion": "onlySnippets",
11 | "editor.wordBasedSuggestions": "off"
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/guides/social_login/README.md:
--------------------------------------------------------------------------------
1 | # social_login
2 |
3 | A new Flutter project.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13 |
14 | For help getting started with Flutter development, view the
15 | [online documentation](https://docs.flutter.dev/), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/guides/social_login/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/guides/social_login/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/guides/social_login/android/app/src/main/kotlin/com/example/social_login/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.social_login
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/guides/social_login/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/guides/social_login/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/guides/social_login/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/guides/social_login/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/guides/social_login/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/guides/social_login/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/guides/social_login/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/guides/social_login/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/guides/social_login/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.9.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.3.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | mavenCentral()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | tasks.register("clean", Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/guides/social_login/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/guides/social_login/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
6 |
--------------------------------------------------------------------------------
/guides/social_login/android/settings.gradle:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | def flutterSdkPath = {
3 | def properties = new Properties()
4 | file("local.properties").withInputStream { properties.load(it) }
5 | def flutterSdkPath = properties.getProperty("flutter.sdk")
6 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
7 | return flutterSdkPath
8 | }
9 | settings.ext.flutterSdkPath = flutterSdkPath()
10 |
11 | includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
12 |
13 | plugins {
14 | id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false
15 | }
16 | }
17 |
18 | include ":app"
19 |
20 | apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle"
21 |
--------------------------------------------------------------------------------
/guides/social_login/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/guides/social_login/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/guides/social_login/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import ParticleConnect
3 | import UIKit
4 |
5 | @UIApplicationMain
6 | @objc class AppDelegate: FlutterAppDelegate {
7 | override func application(
8 | _ application: UIApplication,
9 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
10 | ) -> Bool {
11 | GeneratedPluginRegistrant.register(with: self)
12 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
13 | }
14 |
15 | override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
16 | if ParticleConnect.handleUrl(url) {
17 | return true
18 | } else {
19 | return super.application(app, open: url, options: options)
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/ParticleNetwork-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PROJECT_UUID
6 | 772f7499-1d2e-40f4-8e2c-7b6dd47db9de
7 | PROJECT_CLIENT_KEY
8 | ctWeIc2UBA6sYTKJknT9cu9LBikF00fbk1vmQjsV
9 | PROJECT_APP_UUID
10 | 2db718b1-5e1e-4184-849f-b4efc606e782
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/guides/social_login/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/guides/social_login/ios/RunnerTests/RunnerTests.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import UIKit
3 | import XCTest
4 |
5 | class RunnerTests: XCTestCase {
6 |
7 | func testExample() {
8 | // If you add code to the Runner application, consider adding tests here.
9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/guides/social_login_aa/README.md:
--------------------------------------------------------------------------------
1 | # social_login
2 |
3 | A new Flutter project.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13 |
14 | For help getting started with Flutter development, view the
15 | [online documentation](https://docs.flutter.dev/), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/guides/social_login_aa/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/guides/social_login_aa/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/guides/social_login_aa/android/app/src/main/kotlin/com/example/social_login/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.social_login
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/guides/social_login_aa/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/guides/social_login_aa/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/guides/social_login_aa/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/guides/social_login_aa/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/guides/social_login_aa/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/guides/social_login_aa/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/guides/social_login_aa/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/guides/social_login_aa/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/guides/social_login_aa/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.9.10'
3 | repositories {
4 | google()
5 | mavenCentral()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:7.3.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | mavenCentral()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | tasks.register("clean", Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/guides/social_login_aa/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/guides/social_login_aa/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
6 |
--------------------------------------------------------------------------------
/guides/social_login_aa/android/settings.gradle:
--------------------------------------------------------------------------------
1 | pluginManagement {
2 | def flutterSdkPath = {
3 | def properties = new Properties()
4 | file("local.properties").withInputStream { properties.load(it) }
5 | def flutterSdkPath = properties.getProperty("flutter.sdk")
6 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
7 | return flutterSdkPath
8 | }
9 | settings.ext.flutterSdkPath = flutterSdkPath()
10 |
11 | includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
12 |
13 | plugins {
14 | id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false
15 | }
16 | }
17 |
18 | include ":app"
19 |
20 | apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle"
21 |
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import ParticleConnect
3 | import UIKit
4 |
5 | @UIApplicationMain
6 | @objc class AppDelegate: FlutterAppDelegate {
7 | override func application(
8 | _ application: UIApplication,
9 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
10 | ) -> Bool {
11 | GeneratedPluginRegistrant.register(with: self)
12 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
13 | }
14 |
15 | override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
16 | if ParticleConnect.handleUrl(url) {
17 | return true
18 | } else {
19 | return super.application(app, open: url, options: options)
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/guides/social_login_aa/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/ParticleNetwork-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PROJECT_UUID
6 | 772f7499-1d2e-40f4-8e2c-7b6dd47db9de
7 | PROJECT_CLIENT_KEY
8 | ctWeIc2UBA6sYTKJknT9cu9LBikF00fbk1vmQjsV
9 | PROJECT_APP_UUID
10 | 2db718b1-5e1e-4184-849f-b4efc606e782
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/guides/social_login_aa/ios/RunnerTests/RunnerTests.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import UIKit
3 | import XCTest
4 |
5 | class RunnerTests: XCTestCase {
6 |
7 | func testExample() {
8 | // If you add code to the Runner application, consider adding tests here.
9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
10 | }
11 |
12 | }
13 |
--------------------------------------------------------------------------------
/particle-aa/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
26 | /pubspec.lock
27 | **/doc/api/
28 | .dart_tool/
29 | .packages
30 | build/
31 |
--------------------------------------------------------------------------------
/particle-aa/README.md:
--------------------------------------------------------------------------------
1 | # particle_aa
2 |
3 | A flutter plugin project for particle aa
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter
8 | [plug-in package](https://flutter.dev/developing-packages/),
9 | a specialized package that includes platform-specific implementation code for
10 | Android and/or iOS.
11 |
12 | For help getting started with Flutter development, view the
13 | [online documentation](https://flutter.dev/docs), which offers tutorials,
14 | samples, guidance on mobile development, and a full API reference.
15 |
16 |
--------------------------------------------------------------------------------
/particle-aa/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:flutter_lints/flutter.yaml
2 |
3 | # Additional information about this file can be found at
4 | # https://dart.dev/guides/language/analysis-options
5 |
--------------------------------------------------------------------------------
/particle-aa/android/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .cxx
10 |
--------------------------------------------------------------------------------
/particle-aa/android/consumer-rules.pro:
--------------------------------------------------------------------------------
1 | -keep class network.particle.**{*;}
2 | -dontwarn com.network.particle.**
--------------------------------------------------------------------------------
/particle-aa/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'particle_aa'
2 |
--------------------------------------------------------------------------------
/particle-aa/android/src/main/kotlin/network/particle/aa_plugin/model/AAInitData.kt:
--------------------------------------------------------------------------------
1 | package network.particle.aa_plugin.model
2 |
3 | import androidx.annotation.Keep
4 | import com.google.gson.annotations.SerializedName
5 |
6 | @Keep
7 | data class BiconomyInitData(
8 | @SerializedName("biconomy_app_keys")
9 | val dAppKeys: Map,
10 | @SerializedName("name")
11 | val name: String,
12 | @SerializedName("version")
13 | val version: String
14 | )
15 |
16 | @Keep
17 | data class FeeQuotesParams(
18 | @SerializedName("eoa_address")
19 | val eoaAddress: String,
20 | val transactions: List
21 | )
22 |
--------------------------------------------------------------------------------
/particle-aa/android/src/main/kotlin/network/particle/aa_plugin/utils/EncodeUtils.kt:
--------------------------------------------------------------------------------
1 | package network.particle.aa_plugin.utils
2 |
3 | import com.particle.base.ParticleNetwork
4 |
5 | object EncodeUtils {
6 | fun encode(message: String): String {
7 | return if (ParticleNetwork.isEvmChain()) {
8 | HexUtils.encodeWithPrefix(message.toByteArray(Charsets.UTF_8))
9 | } else {
10 | Base58Utils.encode(message.toByteArray(Charsets.UTF_8))
11 | }
12 | }
13 | }
--------------------------------------------------------------------------------
/particle-aa/example/README.md:
--------------------------------------------------------------------------------
1 | # particle_aa_example
2 |
3 | Demonstrates how to use the particle_aa plugin.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13 |
14 | For help getting started with Flutter development, view the
15 | [online documentation](https://docs.flutter.dev/), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/particle-aa/example/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/particle-aa/example/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-aa/example/android/app/src/main/kotlin/network/particle/auth_plugin/particle_auth_example/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package network.particle.aa_plugin.particle_aa_example
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/particle-aa/example/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/particle-aa/example/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/particle-aa/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-aa/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-aa/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-aa/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-aa/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-aa/example/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-aa/example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/particle-aa/example/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip
6 |
--------------------------------------------------------------------------------
/particle-aa/example/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/particle-aa/example/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/particle-aa/example/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/particle-aa/example/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import ParticleConnect
3 | import UIKit
4 |
5 | @UIApplicationMain
6 | @objc class AppDelegate: FlutterAppDelegate {
7 | override func application(
8 | _ application: UIApplication,
9 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
10 | ) -> Bool {
11 | GeneratedPluginRegistrant.register(with: self)
12 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
13 | }
14 |
15 | override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
16 | if ParticleConnect.handleUrl(url) {
17 | return true
18 | } else {
19 | return super.application(app, open: url, options: options)
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/ParticleNetwork-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | PROJECT_UUID
12 | 772f7499-1d2e-40f4-8e2c-7b6dd47db9de
13 | PROJECT_CLIENT_KEY
14 | ctWeIc2UBA6sYTKJknT9cu9LBikF00fbk1vmQjsV
15 | PROJECT_APP_UUID
16 | 2db718b1-5e1e-4184-849f-b4efc606e782
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/particle-aa/example/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/particle-aa/example/lib/aa_demo/item_button.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class ItemButton extends StatelessWidget {
4 | final String text;
5 | final VoidCallback onPressed;
6 | const ItemButton(this.text, this.onPressed, {super.key});
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | return Padding(
11 | padding: const EdgeInsets.all(8.0),
12 | child: SizedBox(
13 | width: double.infinity,
14 | height: 50,
15 | child: ElevatedButton(
16 | onPressed: () => onPressed(),
17 | child: Text(
18 | text,
19 | style: const TextStyle(fontSize: 18),
20 | )),
21 | ),
22 | );
23 | }
24 | }
25 |
26 | class MethodItem {
27 | String text;
28 | VoidCallback onPressed;
29 |
30 | MethodItem(this.text, this.onPressed);
31 | }
32 |
--------------------------------------------------------------------------------
/particle-aa/example/lib/theme.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | const MaterialColor pnPalette = MaterialColor(_mcgpalette0PrimaryValue, {
4 | 50: Color(0xFFF4EBFE),
5 | 100: Color(0xFFE3CDFE),
6 | 200: Color(0xFFD1ABFD),
7 | 300: Color(0xFFBE89FC),
8 | 400: Color(0xFFB070FB),
9 | 500: Color(_mcgpalette0PrimaryValue),
10 | 600: Color(0xFF9A4FF9),
11 | 700: Color(0xFF9046F9),
12 | 800: Color(0xFF863CF8),
13 | 900: Color(0xFF752CF6),
14 | });
15 | const int _mcgpalette0PrimaryValue = 0xFFA257FA;
16 |
17 | const MaterialColor pnPaletteAccent = MaterialColor(_mcgpalette0AccentValue, {
18 | 100: Color(0xFFFFFFFF),
19 | 200: Color(_mcgpalette0AccentValue),
20 | 400: Color(0xFFDFCFFF),
21 | 700: Color(0xFFCFB6FF),
22 | });
23 | const int _mcgpalette0AccentValue = 0xFFFFFFFF;
24 |
--------------------------------------------------------------------------------
/particle-aa/ios/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | .vagrant/
3 | .sconsign.dblite
4 | .svn/
5 |
6 | .DS_Store
7 | *.swp
8 | profile
9 |
10 | DerivedData/
11 | build/
12 | GeneratedPluginRegistrant.h
13 | GeneratedPluginRegistrant.m
14 |
15 | .generated/
16 |
17 | *.pbxuser
18 | *.mode1v3
19 | *.mode2v3
20 | *.perspectivev3
21 |
22 | !default.pbxuser
23 | !default.mode1v3
24 | !default.mode2v3
25 | !default.perspectivev3
26 |
27 | xcuserdata
28 |
29 | *.moved-aside
30 |
31 | *.pyc
32 | *sync/
33 | Icon?
34 | .tags*
35 |
36 | /Flutter/Generated.xcconfig
37 | /Flutter/ephemeral/
38 | /Flutter/flutter_export_environment.sh
--------------------------------------------------------------------------------
/particle-aa/ios/Assets/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-aa/ios/Assets/.gitkeep
--------------------------------------------------------------------------------
/particle-aa/ios/ParticleNetwork-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | b0991b94-8219-4499-bf8e-d92ce6087f72
6 | YOUR_PROJECT_UUID
7 | PROJECT_CLIENT_KEY
8 | cEpW3oDxg8JoFK2WR4OT04d0mMffdBRPiQIbu0xF
9 | PROJECT_APP_UUID
10 | 1d90aba8-7317-4d0e-85a7-9913b8aaa530
11 |
12 |
13 |
--------------------------------------------------------------------------------
/particle-auth-core/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
26 | /pubspec.lock
27 | **/doc/api/
28 | .dart_tool/
29 | .packages
30 | build/
31 |
--------------------------------------------------------------------------------
/particle-auth-core/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "java.configuration.updateBuildConfiguration": "interactive"
3 | }
--------------------------------------------------------------------------------
/particle-auth-core/README.md:
--------------------------------------------------------------------------------
1 | # particle_auth_core
2 |
3 | A new Flutter plugin project.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter
8 | [plug-in package](https://flutter.dev/developing-packages/),
9 | a specialized package that includes platform-specific implementation code for
10 | Android and/or iOS.
11 |
12 | For help getting started with Flutter development, view the
13 | [online documentation](https://flutter.dev/docs), which offers tutorials,
14 | samples, guidance on mobile development, and a full API reference.
15 |
16 |
--------------------------------------------------------------------------------
/particle-auth-core/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:flutter_lints/flutter.yaml
2 |
3 | linter:
4 | rules:
5 | avoid_print: false
6 |
--------------------------------------------------------------------------------
/particle-auth-core/android/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .cxx
10 |
--------------------------------------------------------------------------------
/particle-auth-core/android/consumer-rules.pro:
--------------------------------------------------------------------------------
1 | -keep class network.particle.**{*;}
2 | -dontwarn com.network.particle.**
--------------------------------------------------------------------------------
/particle-auth-core/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/particle-auth-core/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 |
--------------------------------------------------------------------------------
/particle-auth-core/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'particle_auth_core'
2 |
--------------------------------------------------------------------------------
/particle-auth-core/android/src/main/kotlin/network/particle/authcore_flutter/module/ChainData.kt:
--------------------------------------------------------------------------------
1 | package network.particle.authcore_flutter.module
2 |
3 | import androidx.annotation.Keep
4 | import com.google.gson.annotations.SerializedName
5 |
6 | @Keep
7 | class ChainData {
8 | @SerializedName("chain_id")
9 | var chainId: Long = 0
10 | }
11 |
--------------------------------------------------------------------------------
/particle-auth-core/android/src/main/kotlin/network/particle/authcore_flutter/module/ConnectData.kt:
--------------------------------------------------------------------------------
1 | package network.particle.authcore_flutter.module
2 |
3 | import androidx.annotation.Keep
4 | import com.google.gson.annotations.SerializedName
5 | import com.particle.base.model.LoginPageConfig
6 | import com.particle.base.model.LoginPrompt
7 |
8 | @Keep
9 | data class ConnectData(
10 | @SerializedName("login_type")
11 | val loginType: String,
12 | @SerializedName("account")
13 | val account: String?,
14 | @SerializedName("support_auth_type_values")
15 | val supportLoginTypes: List? = null,
16 | @SerializedName("login_page_config")
17 | val loginPageConfig: LoginPageConfig? = null,
18 | @SerializedName("social_login_prompt")
19 | val prompt: LoginPrompt? = null
20 | )
21 |
22 |
23 |
--------------------------------------------------------------------------------
/particle-auth-core/android/src/main/kotlin/network/particle/authcore_flutter/utils/BridgeScope.kt:
--------------------------------------------------------------------------------
1 | package network.particle.authcore_flutter.utils;
2 |
3 | import kotlinx.coroutines.CoroutineScope
4 | import kotlinx.coroutines.Dispatchers
5 | import kotlinx.coroutines.SupervisorJob
6 | import kotlin.coroutines.CoroutineContext
7 |
8 | object BridgeScope : CoroutineScope {
9 | override val coroutineContext: CoroutineContext = SupervisorJob() + Dispatchers.Main
10 | }
11 |
--------------------------------------------------------------------------------
/particle-auth-core/android/src/main/kotlin/network/particle/authcore_flutter/utils/EncodeUtils.kt:
--------------------------------------------------------------------------------
1 | package network.particle.authcore_flutter.utils;
2 |
3 | import com.particle.base.ParticleNetwork
4 |
5 | object EncodeUtils {
6 | fun encode(message: String): String {
7 | return if (ParticleNetwork.isEvmChain()) {
8 | HexUtils.encodeWithPrefix(message.toByteArray(Charsets.UTF_8))
9 | } else {
10 | Base58Utils.encode(message.toByteArray(Charsets.UTF_8))
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/particle-auth-core/example/README.md:
--------------------------------------------------------------------------------
1 | # particle_auth_core_example
2 |
3 | Demonstrates how to use the particle_auth_core plugin.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13 |
14 | For help getting started with Flutter development, view the
15 | [online documentation](https://docs.flutter.dev/), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/particle-auth-core/example/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/particle-auth-core/example/android/app/src/main/kotlin/network/particle/authcore/example/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package network.particle.authcore.example
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/particle-auth-core/example/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/particle-auth-core/example/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/particle-auth-core/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-auth-core/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-auth-core/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-auth-core/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-auth-core/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-auth-core/example/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-auth-core/example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
5 |
--------------------------------------------------------------------------------
/particle-auth-core/example/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Thu Aug 15 17:23:59 CST 2024
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
5 | zipStoreBase=GRADLE_USER_HOME
6 | zipStorePath=wrapper/dists
7 |
--------------------------------------------------------------------------------
/particle-auth-core/example/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import UIKit
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 |
12 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
13 | }
14 |
15 | override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
16 | return super.application(app, open: url, options: options)
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/ParticleNetwork-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | PROJECT_UUID
7 | 7399450c-7c80-4fa9-b61a-58c815a821a2
8 | PROJECT_CLIENT_KEY
9 | cip1DpxvzNMYekotllYMmiTVtpNClCaCEccjSkqw
10 | PROJECT_APP_UUID
11 | 41326c93-7584-4923-9051-19f44027b959
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/particle-auth-core/example/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/particle-auth-core/example/lib/theme.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | const MaterialColor pnPalette = MaterialColor(_mcgpalette0PrimaryValue, {
4 | 50: Color(0xFFF4EBFE),
5 | 100: Color(0xFFE3CDFE),
6 | 200: Color(0xFFD1ABFD),
7 | 300: Color(0xFFBE89FC),
8 | 400: Color(0xFFB070FB),
9 | 500: Color(_mcgpalette0PrimaryValue),
10 | 600: Color(0xFF9A4FF9),
11 | 700: Color(0xFF9046F9),
12 | 800: Color(0xFF863CF8),
13 | 900: Color(0xFF752CF6),
14 | });
15 | const int _mcgpalette0PrimaryValue = 0xFFA257FA;
16 |
17 | const MaterialColor pnPaletteAccent = MaterialColor(_mcgpalette0AccentValue, {
18 | 100: Color(0xFFFFFFFF),
19 | 200: Color(_mcgpalette0AccentValue),
20 | 400: Color(0xFFDFCFFF),
21 | 700: Color(0xFFCFB6FF),
22 | });
23 | const int _mcgpalette0AccentValue = 0xFFFFFFFF;
24 |
--------------------------------------------------------------------------------
/particle-auth-core/ios/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | .vagrant/
3 | .sconsign.dblite
4 | .svn/
5 |
6 | .DS_Store
7 | *.swp
8 | profile
9 |
10 | DerivedData/
11 | build/
12 | GeneratedPluginRegistrant.h
13 | GeneratedPluginRegistrant.m
14 |
15 | .generated/
16 |
17 | *.pbxuser
18 | *.mode1v3
19 | *.mode2v3
20 | *.perspectivev3
21 |
22 | !default.pbxuser
23 | !default.mode1v3
24 | !default.mode2v3
25 | !default.perspectivev3
26 |
27 | xcuserdata
28 |
29 | *.moved-aside
30 |
31 | *.pyc
32 | *sync/
33 | Icon?
34 | .tags*
35 |
36 | /Flutter/Generated.xcconfig
37 | /Flutter/ephemeral/
38 | /Flutter/flutter_export_environment.sh
--------------------------------------------------------------------------------
/particle-auth-core/ios/Assets/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-auth-core/ios/Assets/.gitkeep
--------------------------------------------------------------------------------
/particle-base/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
26 | /pubspec.lock
27 | **/doc/api/
28 | .dart_tool/
29 | .packages
30 | build/
31 |
--------------------------------------------------------------------------------
/particle-base/README.md:
--------------------------------------------------------------------------------
1 | # particle_base
2 |
3 | A flutter plugin project for particle base
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter
8 | [plug-in package](https://flutter.dev/developing-packages/),
9 | a specialized package that includes platform-specific implementation code for
10 | Android and/or iOS.
11 |
12 | For help getting started with Flutter development, view the
13 | [online documentation](https://flutter.dev/docs), which offers tutorials,
14 | samples, guidance on mobile development, and a full API reference.
15 |
16 |
--------------------------------------------------------------------------------
/particle-base/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:flutter_lints/flutter.yaml
2 |
3 | # Additional information about this file can be found at
4 | # https://dart.dev/guides/language/analysis-options
5 |
--------------------------------------------------------------------------------
/particle-base/android/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .cxx
10 |
--------------------------------------------------------------------------------
/particle-base/android/consumer-rules.pro:
--------------------------------------------------------------------------------
1 | -keep class network.particle.**{*;}
2 | -dontwarn com.network.particle.**
--------------------------------------------------------------------------------
/particle-base/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/particle-base/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip
6 |
--------------------------------------------------------------------------------
/particle-base/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'particle_base'
2 |
--------------------------------------------------------------------------------
/particle-base/android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
11 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/particle-base/android/src/main/kotlin/network/particle/base_flutter/model/BaseInitData.kt:
--------------------------------------------------------------------------------
1 | package network.particle.base_flutter.model
2 |
3 |
4 | import androidx.annotation.Keep
5 | import com.google.gson.annotations.SerializedName
6 |
7 | @Keep
8 | data class BaseInitData(
9 | @SerializedName("chain_name") var chainName: String? = null,
10 | @SerializedName("chain_id") var chainId: Long = 0,
11 | @SerializedName("chain_id_name") var chainIdName: String? = null,
12 | @SerializedName("env") var env: String? = null
13 | )
--------------------------------------------------------------------------------
/particle-base/android/src/main/kotlin/network/particle/base_flutter/model/ChainData.kt:
--------------------------------------------------------------------------------
1 | package network.particle.base_flutter.model
2 |
3 |
4 | import androidx.annotation.Keep
5 | import com.google.gson.annotations.SerializedName
6 |
7 | @Keep
8 | class ChainData {
9 | @SerializedName("chain_name")
10 | var chainName: String? = null
11 |
12 | @SerializedName("chain_id")
13 | var chainId:Long = 0
14 |
15 | @SerializedName("env")
16 | var env: String? = null
17 | }
--------------------------------------------------------------------------------
/particle-base/android/src/main/kotlin/network/particle/base_flutter/model/FlutterErrorMessage.kt:
--------------------------------------------------------------------------------
1 | package network.particle.base_flutter.model
2 |
3 | import androidx.annotation.Keep
4 | import com.google.gson.annotations.SerializedName
5 | @Keep
6 | class FlutterErrorMessage {
7 | @SerializedName("code")
8 | var code = 0
9 |
10 | @SerializedName("message")
11 | var message: String? = null
12 |
13 | constructor(code: Int, message: String?) {
14 | this.code = code
15 | this.message = message
16 | }
17 |
18 | constructor() {}
19 |
20 | companion object {
21 | const val ExceptionCode = 10000
22 | fun exceptionMsg(message: String?): FlutterErrorMessage {
23 | return FlutterErrorMessage(ExceptionCode, message)
24 | }
25 | }
26 | }
--------------------------------------------------------------------------------
/particle-base/android/src/main/kotlin/network/particle/base_flutter/model/InitData.kt:
--------------------------------------------------------------------------------
1 | package network.particle.base_flutter.model
2 | import com.google.gson.annotations.SerializedName
3 |
4 | class InitData {
5 | @SerializedName("chain_name")
6 | var chainName: String? = null
7 |
8 | @SerializedName("chain_id")
9 | var chainId: Long = 0
10 |
11 | @SerializedName("chain_id_name")
12 | var chainIdName: String? = null
13 |
14 | @SerializedName("env")
15 | var env: String? = null
16 | }
--------------------------------------------------------------------------------
/particle-base/android/src/main/kotlin/network/particle/base_flutter/model/LoginData.kt:
--------------------------------------------------------------------------------
1 | package network.particle.base_flutter.model
2 |
3 | import com.google.gson.annotations.SerializedName
4 | import com.particle.base.model.LoginAuthorization
5 |
6 | class LoginData {
7 | @SerializedName("login_type")
8 | var loginType: String? = null
9 | var account: String? = null
10 |
11 | @SerializedName("support_auth_type_values")
12 | var supportAuthTypeValues: List? = null
13 |
14 | @SerializedName("social_login_prompt")
15 | var prompt: String? = null
16 |
17 | @SerializedName("login_form_mode")
18 | var loginFormMode: Boolean? = null
19 |
20 | @SerializedName("authorization")
21 | val authorization: LoginAuthorization? = null
22 | }
--------------------------------------------------------------------------------
/particle-base/android/src/main/kotlin/network/particle/base_flutter/model/RpcUrl.kt:
--------------------------------------------------------------------------------
1 | package network.particle.base_flutter.model
2 |
3 |
4 | import androidx.annotation.Keep
5 | import com.google.gson.annotations.SerializedName
6 | @Keep
7 | class RpcUrl {
8 | @SerializedName("evm_url")
9 | var evmUrl: String? = null
10 |
11 | @SerializedName("sol_url")
12 | var solUrl: String? = null
13 | }
--------------------------------------------------------------------------------
/particle-base/android/src/main/kotlin/network/particle/base_flutter/model/SignTypedData.kt:
--------------------------------------------------------------------------------
1 | package network.particle.base_flutter.model
2 |
3 | import androidx.annotation.Keep
4 |
5 | @Keep
6 | class SignTypedData {
7 | var message: String? = null
8 | var version: String? = null // public String getVersion() {
9 | // return version.toLowerCase();
10 | // }
11 | }
--------------------------------------------------------------------------------
/particle-base/android/src/main/kotlin/network/particle/base_flutter/utils/ChainUtils.kt:
--------------------------------------------------------------------------------
1 | package network.particle.base_flutter.utils
2 |
3 | import network.particle.chains.ChainInfo
4 |
5 | object ChainUtils {
6 | fun getChainInfo(chainId: Long): ChainInfo {
7 | return getChainInfoByChainId(chainId)
8 | }
9 |
10 | private fun getChainInfoByChainId(chainId: Long): ChainInfo {
11 | return ChainInfo.getEvmChain(chainId) ?: ChainInfo.getSolanaChain(chainId) ?: ChainInfo.getEvmChain(1)!!
12 | }
13 | }
--------------------------------------------------------------------------------
/particle-base/android/src/main/kotlin/network/particle/base_flutter/utils/EncodeUtils.kt:
--------------------------------------------------------------------------------
1 | package network.particle.base_flutter.utils
2 |
3 | import com.particle.base.ParticleNetwork
4 | import network.particle.base_flutter.utils.Base58Utils
5 |
6 | object EncodeUtils {
7 | fun encode(message: String): String {
8 | return if (ParticleNetwork.isEvmChain()) {
9 | HexUtils.encodeWithPrefix(message.toByteArray(Charsets.UTF_8))
10 | } else {
11 | Base58Utils.encode(message.toByteArray(Charsets.UTF_8))
12 | }
13 | }
14 | }
--------------------------------------------------------------------------------
/particle-base/example/README.md:
--------------------------------------------------------------------------------
1 | # particle_base_example
2 |
3 | Demonstrates how to use the particle_base plugin.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13 |
14 | For help getting started with Flutter development, view the
15 | [online documentation](https://docs.flutter.dev/), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/particle-base/example/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/particle-base/example/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-base/example/android/app/src/main/kotlin/network/particle/base_plugin/particle_base_example/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package network.particle.base_plugin.particle_base_example
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/particle-base/example/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/particle-base/example/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/particle-base/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-base/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-base/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-base/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-base/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-base/example/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-base/example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/particle-base/example/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Thu Aug 15 15:48:27 CST 2024
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
5 | zipStoreBase=GRADLE_USER_HOME
6 | zipStorePath=wrapper/dists
7 |
--------------------------------------------------------------------------------
/particle-base/example/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/particle-base/example/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/particle-base/example/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/particle-base/example/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/particle-base/example/ios/ParticleNetwork-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | b0991b94-8219-4499-bf8e-d92ce6087f72
6 | YOUR_PROJECT_UUID
7 | PROJECT_CLIENT_KEY
8 | cEpW3oDxg8JoFK2WR4OT04d0mMffdBRPiQIbu0xF
9 | PROJECT_APP_UUID
10 | 1d90aba8-7317-4d0e-85a7-9913b8aaa530
11 |
12 |
13 |
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import UIKit
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 |
14 | override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
15 | return super.application(app, open: url, options: options)
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/ParticleNetwork-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | PROJECT_UUID
13 | 199cb36a-3542-4a8c-a377-423d8bec500b
14 | PROJECT_CLIENT_KEY
15 | cLBxYFEIic3VN7o074Dd1A9Ct1VVl33B6qobu2QK
16 | PROJECT_APP_UUID
17 | 6c11e6fe-3b68-418b-9176-70298b4a74cb
18 |
19 |
20 |
--------------------------------------------------------------------------------
/particle-base/example/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/particle-base/example/lib/base_demo/custom_bottom_sheet.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class CustomBottomSheet extends StatelessWidget {
4 | final List options;
5 | final Function(int) onSelect;
6 |
7 | const CustomBottomSheet({super.key, required this.options, required this.onSelect});
8 |
9 | @override
10 | Widget build(BuildContext context) {
11 | return Wrap(
12 | children: List.generate(options.length, (index) {
13 | return ListTile(
14 | leading: const Icon(Icons.check),
15 | title: Text(options[index]),
16 | onTap: () {
17 | Navigator.pop(context);
18 | onSelect(index); // Callback with the selected index
19 | },
20 | );
21 | }),
22 | );
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/particle-base/example/lib/base_demo/item_button.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class ItemButton extends StatelessWidget {
4 | final String text;
5 | final VoidCallback onPressed;
6 | const ItemButton(this.text, this.onPressed, {super.key});
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | return Padding(
11 | padding: const EdgeInsets.all(8.0),
12 | child: SizedBox(
13 | width: double.infinity,
14 | height: 50,
15 | child: ElevatedButton(
16 | onPressed: () => onPressed(),
17 | child: Text(
18 | text,
19 | style: const TextStyle(fontSize: 18),
20 | )),
21 | ),
22 | );
23 | }
24 | }
25 |
26 | class MethodItem {
27 | String text;
28 | VoidCallback onPressed;
29 |
30 | MethodItem(this.text, this.onPressed);
31 | }
32 |
--------------------------------------------------------------------------------
/particle-base/example/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "example",
3 | "lockfileVersion": 2,
4 | "requires": true,
5 | "packages": {}
6 | }
7 |
--------------------------------------------------------------------------------
/particle-base/ios/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | .vagrant/
3 | .sconsign.dblite
4 | .svn/
5 |
6 | .DS_Store
7 | *.swp
8 | profile
9 |
10 | DerivedData/
11 | build/
12 | GeneratedPluginRegistrant.h
13 | GeneratedPluginRegistrant.m
14 |
15 | .generated/
16 |
17 | *.pbxuser
18 | *.mode1v3
19 | *.mode2v3
20 | *.perspectivev3
21 |
22 | !default.pbxuser
23 | !default.mode1v3
24 | !default.mode2v3
25 | !default.perspectivev3
26 |
27 | xcuserdata
28 |
29 | *.moved-aside
30 |
31 | *.pyc
32 | *sync/
33 | Icon?
34 | .tags*
35 |
36 | /Flutter/Generated.xcconfig
37 | /Flutter/ephemeral/
38 | /Flutter/flutter_export_environment.sh
--------------------------------------------------------------------------------
/particle-base/ios/Assets/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-base/ios/Assets/.gitkeep
--------------------------------------------------------------------------------
/particle-base/lib/model/fiat_coin.dart:
--------------------------------------------------------------------------------
1 | enum FiatCoin {
2 | USD,
3 | CNY,
4 | JPY,
5 | HKD,
6 | INR,
7 | KRW,
8 | }
9 |
--------------------------------------------------------------------------------
/particle-base/lib/model/gas_fee_level.dart:
--------------------------------------------------------------------------------
1 | enum GasFeeLevel {
2 | high,
3 | medium,
4 | low,
5 | }
6 |
--------------------------------------------------------------------------------
/particle-base/lib/model/ios_modal_present_style.dart:
--------------------------------------------------------------------------------
1 | enum IOSModalPresentStyle {
2 | fullScreen,
3 | pageSheet,
4 | }
5 |
--------------------------------------------------------------------------------
/particle-base/lib/model/language.dart:
--------------------------------------------------------------------------------
1 | enum Language {
2 | en,
3 | // ignore: constant_identifier_names
4 | zh_hans,
5 | // ignore: constant_identifier_names
6 | zh_hant,
7 | ja,
8 | ko
9 | }
10 |
--------------------------------------------------------------------------------
/particle-base/lib/model/particle_info.dart:
--------------------------------------------------------------------------------
1 | class ParticleInfo {
2 | static String projectId = "";
3 | static String clientKey = "";
4 |
5 | static set(String projectId, String clientKey) {
6 | ParticleInfo.projectId = projectId;
7 | ParticleInfo.clientKey = clientKey;
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/particle-base/lib/model/smart_account_config.dart:
--------------------------------------------------------------------------------
1 | import 'package:particle_base/particle_base.dart';
2 |
3 | class SmartAccountConfig {
4 | String name;
5 | String version;
6 | String ownerAddress;
7 |
8 | SmartAccountConfig(this.name, this.version, this.ownerAddress);
9 |
10 | SmartAccountConfig.fromAccountName(
11 | AccountName accountName, String ownerAddress)
12 | : name = accountName.name,
13 | version = accountName.version,
14 | ownerAddress = ownerAddress;
15 |
16 | Map toJson() => {
17 | 'name': name,
18 | 'version': version,
19 | 'ownerAddress': ownerAddress,
20 | };
21 | }
22 |
--------------------------------------------------------------------------------
/particle-base/lib/model/typeddata_version.dart:
--------------------------------------------------------------------------------
1 | enum SignTypedDataVersion { v1, v3, v4, v4Unique }
2 |
--------------------------------------------------------------------------------
/particle-base/lib/model/user_interface_style.dart:
--------------------------------------------------------------------------------
1 | enum Appearance {
2 | /// follow system
3 | system,
4 |
5 | /// light mode
6 | light,
7 |
8 | /// dark mode
9 | dark,
10 | }
11 |
--------------------------------------------------------------------------------
/particle-base/lib/network/model/rpc_error.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:json_annotation/json_annotation.dart';
4 |
5 | part 'rpc_error.g.dart';
6 |
7 | @JsonSerializable()
8 | class RpcError {
9 | int? code;
10 | String? message;
11 | dynamic data;
12 |
13 | RpcError();
14 |
15 | factory RpcError.fromJson(Map json) =>
16 | _$RpcErrorFromJson(json);
17 |
18 | Map toJson() => _$RpcErrorToJson(this);
19 |
20 | @override
21 | String toString() {
22 | return jsonEncode(this);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/particle-base/lib/network/model/rpc_error.g.dart:
--------------------------------------------------------------------------------
1 | // GENERATED CODE - DO NOT MODIFY BY HAND
2 |
3 | part of 'rpc_error.dart';
4 |
5 | // **************************************************************************
6 | // JsonSerializableGenerator
7 | // **************************************************************************
8 |
9 | RpcError _$RpcErrorFromJson(Map json) => RpcError()
10 | ..code = (json['code'] as num?)?.toInt()
11 | ..message = json['message'] as String?
12 | ..data = json['data'];
13 |
14 | Map _$RpcErrorToJson(RpcError instance) => {
15 | 'code': instance.code,
16 | 'message': instance.message,
17 | 'data': instance.data,
18 | };
19 |
--------------------------------------------------------------------------------
/particle-base/lib/network/model/rpc_url_entity.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:json_annotation/json_annotation.dart';
4 |
5 | part 'rpc_url_entity.g.dart';
6 |
7 | @JsonSerializable()
8 | class RpcUrlEntity {
9 | @JsonKey(name: "evm_url")
10 | String? evmUrl;
11 | @JsonKey(name: "sol_url")
12 | String? solUrl;
13 |
14 | RpcUrlEntity();
15 |
16 | factory RpcUrlEntity.fromJson(Map json) =>
17 | _$RpcUrlEntityFromJson(json);
18 |
19 | Map toJson() => _$RpcUrlEntityToJson(this);
20 |
21 | @override
22 | String toString() {
23 | return jsonEncode(this);
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/particle-base/lib/network/model/rpc_url_entity.g.dart:
--------------------------------------------------------------------------------
1 | // GENERATED CODE - DO NOT MODIFY BY HAND
2 |
3 | part of 'rpc_url_entity.dart';
4 |
5 | // **************************************************************************
6 | // JsonSerializableGenerator
7 | // **************************************************************************
8 |
9 | RpcUrlEntity _$RpcUrlEntityFromJson(Map json) => RpcUrlEntity()
10 | ..evmUrl = json['evm_url'] as String?
11 | ..solUrl = json['sol_url'] as String?;
12 |
13 | Map _$RpcUrlEntityToJson(RpcUrlEntity instance) =>
14 | {
15 | 'evm_url': instance.evmUrl,
16 | 'sol_url': instance.solUrl,
17 | };
18 |
--------------------------------------------------------------------------------
/particle-base/lib/network/model/serialize_sol_transaction.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:json_annotation/json_annotation.dart';
4 |
5 | part 'serialize_sol_transaction.g.dart';
6 |
7 | @JsonSerializable()
8 | class SerializeSOLTransaction {
9 | /// Sender address
10 | late String sender;
11 | /// Receiver address
12 | late String receiver;
13 | /// Transfer amount in minimal unit
14 | late int lamports;
15 |
16 | SerializeSOLTransaction();
17 |
18 | factory SerializeSOLTransaction.fromJson(Map json) =>
19 | _$SerializeSOLTransactionFromJson(json);
20 |
21 | Map toJson() => _$SerializeSOLTransactionToJson(this);
22 |
23 | @override
24 | String toString() {
25 | return jsonEncode(this);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/particle-base/lib/network/model/serialize_spl_token_transaction.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:json_annotation/json_annotation.dart';
4 |
5 | part 'serialize_spl_token_transaction.g.dart';
6 |
7 | @JsonSerializable()
8 | class SerializeSplTokenTransaction {
9 | /// Sender address
10 | late String sender;
11 | /// Receiver address
12 | late String receiver;
13 | /// Spl token mint address
14 | late String mint;
15 | /// transfer amount in minimal unit
16 | late int amount;
17 |
18 | SerializeSplTokenTransaction();
19 |
20 | factory SerializeSplTokenTransaction.fromJson(Map json) =>
21 | _$SerializeSplTokenTransactionFromJson(json);
22 |
23 | Map toJson() => _$SerializeSplTokenTransactionToJson(this);
24 |
25 | @override
26 | String toString() {
27 | return jsonEncode(this);
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/particle-base/lib/network/model/serialize_wsol_transaction.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:json_annotation/json_annotation.dart';
4 |
5 | part 'serialize_wsol_transaction.g.dart';
6 |
7 | @JsonSerializable()
8 | class SerializeWSOLTransaction {
9 | /// Sender address
10 | late String address;
11 |
12 | SerializeWSOLTransaction();
13 |
14 | factory SerializeWSOLTransaction.fromJson(Map json) =>
15 | _$SerializeWSOLTransactionFromJson(json);
16 |
17 | Map toJson() => _$SerializeWSOLTransactionToJson(this);
18 |
19 | @override
20 | String toString() {
21 | return jsonEncode(this);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/particle-base/lib/network/model/serialize_wsol_transaction.g.dart:
--------------------------------------------------------------------------------
1 | // GENERATED CODE - DO NOT MODIFY BY HAND
2 |
3 | part of 'serialize_wsol_transaction.dart';
4 |
5 | // **************************************************************************
6 | // JsonSerializableGenerator
7 | // **************************************************************************
8 |
9 | SerializeWSOLTransaction _$SerializeWSOLTransactionFromJson(
10 | Map json) =>
11 | SerializeWSOLTransaction()..address = json['address'] as String;
12 |
13 | Map _$SerializeWSOLTransactionToJson(
14 | SerializeWSOLTransaction instance) =>
15 | {
16 | 'address': instance.address,
17 | };
18 |
--------------------------------------------------------------------------------
/particle-base/lib/network/net/request_body_entity.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:json_annotation/json_annotation.dart';
4 |
5 | part 'request_body_entity.g.dart';
6 |
7 | @JsonSerializable()
8 | class RequestBodyEntity {
9 | int? chainId;
10 | String? jsonrpc;
11 | String? id;
12 | String? method;
13 | List? params;
14 |
15 | RequestBodyEntity();
16 |
17 | factory RequestBodyEntity.fromJson(Map json) =>
18 | _$RequestBodyEntityFromJson(json);
19 |
20 | Map toJson() => _$RequestBodyEntityToJson(this);
21 |
22 | @override
23 | String toString() {
24 | return jsonEncode(this);
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/particle-base/lib/network/net/response.dart:
--------------------------------------------------------------------------------
1 | import 'dart:convert';
2 |
3 | import 'package:json_annotation/json_annotation.dart';
4 | import 'package:particle_base/particle_base.dart';
5 |
6 | part 'response.g.dart';
7 |
8 | @JsonSerializable()
9 | class RpcResponse {
10 | dynamic chainId;
11 | String? jsonrpc;
12 | String? id;
13 | String? method;
14 | dynamic result;
15 | RpcError? error;
16 |
17 | RpcResponse();
18 |
19 | factory RpcResponse.fromJson(Map json) =>
20 | _$RpcResponseFromJson(json);
21 |
22 | Map toJson() => _$RpcResponseToJson(this);
23 |
24 | @override
25 | String toString() {
26 | return jsonEncode(this);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/particle-connect/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
26 | /pubspec.lock
27 | **/doc/api/
28 | .dart_tool/
29 | .packages
30 | build/
31 |
--------------------------------------------------------------------------------
/particle-connect/README.md:
--------------------------------------------------------------------------------
1 | # particle_connect
2 |
3 | A flutter plugin project for particle connect
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter
8 | [plug-in package](https://flutter.dev/developing-packages/),
9 | a specialized package that includes platform-specific implementation code for
10 | Android and/or iOS.
11 |
12 | For help getting started with Flutter development, view the
13 | [online documentation](https://flutter.dev/docs), which offers tutorials,
14 | samples, guidance on mobile development, and a full API reference.
15 |
16 |
--------------------------------------------------------------------------------
/particle-connect/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:flutter_lints/flutter.yaml
2 |
3 | # Additional information about this file can be found at
4 | # https://dart.dev/guides/language/analysis-options
5 |
--------------------------------------------------------------------------------
/particle-connect/android/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .cxx
10 |
--------------------------------------------------------------------------------
/particle-connect/android/consumer-rules.pro:
--------------------------------------------------------------------------------
1 | -keep class network.particle.**{*;}
2 | -dontwarn com.network.particle.**
--------------------------------------------------------------------------------
/particle-connect/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'particle_connect'
2 |
--------------------------------------------------------------------------------
/particle-connect/android/src/main/kotlin/network/particle/connect_plugin/model/AccountNew.kt:
--------------------------------------------------------------------------------
1 | package network.particle.connect_plugin.model
2 |
3 | import androidx.annotation.Keep
4 |
5 | @Keep
6 | data class AccountNew(val publicAddress: String, val walletType: String? = null)
--------------------------------------------------------------------------------
/particle-connect/android/src/main/kotlin/network/particle/connect_plugin/model/AddCustomTokenData.java:
--------------------------------------------------------------------------------
1 | package network.particle.connect_plugin.model;
2 |
3 | import androidx.annotation.Keep;
4 |
5 | import com.google.gson.annotations.SerializedName;
6 |
7 | import java.util.List;
8 |
9 | @Keep
10 | public class AddCustomTokenData {
11 |
12 | @SerializedName("address")
13 | public String address;
14 |
15 | @SerializedName("token_addresses")
16 | public List tokenAddress;
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/particle-connect/android/src/main/kotlin/network/particle/connect_plugin/model/AddSwitchChain.kt:
--------------------------------------------------------------------------------
1 | package network.particle.connect_plugin.model;
2 |
3 | import androidx.annotation.Keep
4 | import com.google.gson.annotations.SerializedName
5 |
6 | @Keep
7 | data class AddSwitchChain(
8 | @SerializedName("chain_name") val chainName: String,
9 | @SerializedName("chain_id") val chainId: String,
10 | @SerializedName("chain_id_name") val chainIdName: String,
11 | @SerializedName("wallet_type") val walletType: String,
12 | @SerializedName("public_address") val publicAddress: String,
13 | )
--------------------------------------------------------------------------------
/particle-connect/android/src/main/kotlin/network/particle/connect_plugin/model/ChainData.java:
--------------------------------------------------------------------------------
1 | package network.particle.connect_plugin.model;
2 |
3 | import androidx.annotation.Keep;
4 |
5 | import com.google.gson.annotations.SerializedName;
6 |
7 | @Keep
8 | public class ChainData {
9 |
10 | @SerializedName("chain_id")
11 | public long chainId;
12 |
13 | @SerializedName("chain_id_name")
14 | public String chainIdName;
15 |
16 | @SerializedName("env")
17 | public String env;
18 | }
19 |
--------------------------------------------------------------------------------
/particle-connect/android/src/main/kotlin/network/particle/connect_plugin/model/InitData.java:
--------------------------------------------------------------------------------
1 | package network.particle.connect_plugin.model;
2 |
3 | import androidx.annotation.Keep;
4 |
5 | import com.google.gson.annotations.SerializedName;
6 | import com.particle.base.model.DAppMetadata;
7 |
8 | @Keep
9 | public class InitData {
10 |
11 | @SerializedName("chain_name")
12 | public String chainName;
13 |
14 | @SerializedName("chain_id")
15 | public long chainId;
16 |
17 | @SerializedName("env")
18 | public String env;
19 |
20 | @SerializedName("metadata")
21 | public DAppMetadata metadata;
22 |
23 | @SerializedName("rpc_url")
24 | public RpcUrl rpcUrl;
25 | }
26 |
--------------------------------------------------------------------------------
/particle-connect/android/src/main/kotlin/network/particle/connect_plugin/model/LoginData.java:
--------------------------------------------------------------------------------
1 | package network.particle.connect_plugin.model;
2 |
3 | import androidx.annotation.Keep;
4 |
5 | import com.google.gson.annotations.SerializedName;
6 |
7 | import java.util.List;
8 |
9 | @Keep
10 | public class LoginData {
11 |
12 | @SerializedName("login_type")
13 | public String loginType;
14 |
15 | public String account;
16 |
17 | @SerializedName("support_auth_type_values")
18 | public List supportAuthTypeValues;
19 | }
20 |
--------------------------------------------------------------------------------
/particle-connect/android/src/main/kotlin/network/particle/connect_plugin/model/RpcUrl.java:
--------------------------------------------------------------------------------
1 | package network.particle.connect_plugin.model;
2 |
3 | import androidx.annotation.Keep;
4 |
5 | import com.google.gson.annotations.SerializedName;
6 | @Keep
7 | public class RpcUrl {
8 |
9 | @SerializedName("evm_url")
10 | public String evmUrl;
11 |
12 | @SerializedName("sol_url")
13 | public String solUrl;
14 | }
15 |
--------------------------------------------------------------------------------
/particle-connect/android/src/main/kotlin/network/particle/connect_plugin/model/SignTypedData.java:
--------------------------------------------------------------------------------
1 | package network.particle.connect_plugin.model;
2 |
3 | import androidx.annotation.Keep;
4 |
5 | @Keep
6 | public class SignTypedData {
7 |
8 | public String message;
9 |
10 | public String version;
11 |
12 | // public String getVersion() {
13 | // return version.toLowerCase();
14 | // }
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/particle-connect/android/src/main/kotlin/network/particle/connect_plugin/model/TransReqOptData.java:
--------------------------------------------------------------------------------
1 | package network.particle.connect_plugin.model;
2 |
3 | import androidx.annotation.Keep;
4 |
5 | import com.google.gson.annotations.SerializedName;
6 |
7 | @Keep
8 | public class TransReqOptData {
9 |
10 | @SerializedName("address")
11 | public String address;
12 |
13 | @SerializedName("before")
14 | public String before;
15 |
16 | @SerializedName("mint_address")
17 | public String mint;
18 |
19 | @SerializedName("until")
20 | public String until;
21 |
22 | @SerializedName("limit")
23 | public int limit;
24 |
25 | public TransReqOptData(String address, String before, String until, int limit) {
26 | this.address = address;
27 | this.before = before;
28 | this.until = until;
29 | this.limit = limit;
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/particle-connect/android/src/main/kotlin/network/particle/connect_plugin/utils/BridgeScope.kt:
--------------------------------------------------------------------------------
1 | package network.particle.connect_plugin.utils;
2 |
3 | import kotlinx.coroutines.CoroutineScope
4 | import kotlinx.coroutines.Dispatchers
5 | import kotlinx.coroutines.SupervisorJob
6 | import kotlin.coroutines.CoroutineContext
7 |
8 | object BridgeScope : CoroutineScope {
9 | override val coroutineContext: CoroutineContext = SupervisorJob() + Dispatchers.Main
10 | }
11 |
--------------------------------------------------------------------------------
/particle-connect/android/src/main/kotlin/network/particle/connect_plugin/utils/EncodeUtils.kt:
--------------------------------------------------------------------------------
1 | package network.particle.connect_plugin.utils;
2 |
3 | import com.particle.base.ParticleNetwork
4 |
5 | object EncodeUtils {
6 | fun encode(message: String): String {
7 | return if (ParticleNetwork.isEvmChain()) {
8 | HexUtils.encodeWithPrefix(message.toByteArray(Charsets.UTF_8))
9 | } else {
10 | Base58Utils.encode(message.toByteArray(Charsets.UTF_8))
11 | }
12 | }
13 | }
--------------------------------------------------------------------------------
/particle-connect/example/README.md:
--------------------------------------------------------------------------------
1 | # particle_connect_example
2 |
3 | Demonstrates how to use the particle_connect plugin.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13 |
14 | For help getting started with Flutter development, view the
15 | [online documentation](https://docs.flutter.dev/), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/particle-connect/example/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/particle-connect/example/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-connect/example/android/app/src/main/kotlin/network/particle/connect_plugin/example/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package network.particle.connect_plugin.example
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/particle-connect/example/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/particle-connect/example/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/particle-connect/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-connect/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-connect/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-connect/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-connect/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-connect/example/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-connect/example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
5 | # org.gradle.java.home=/Applications/Android Studio.app/Contents/jre/Contents/Home
6 |
--------------------------------------------------------------------------------
/particle-connect/example/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Thu Aug 15 20:46:15 CST 2024
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
5 | zipStoreBase=GRADLE_USER_HOME
6 | zipStorePath=wrapper/dists
7 |
--------------------------------------------------------------------------------
/particle-connect/example/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/particle-connect/example/assets/images/powerby_particle_network.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/assets/images/powerby_particle_network.webp
--------------------------------------------------------------------------------
/particle-connect/example/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/particle-connect/example/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/particle-connect/example/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Flutter
2 | import ParticleConnect
3 | import UIKit
4 |
5 | @UIApplicationMain
6 | @objc class AppDelegate: FlutterAppDelegate {
7 | override func application(
8 | _ application: UIApplication,
9 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
10 | ) -> Bool {
11 | GeneratedPluginRegistrant.register(with: self)
12 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
13 | }
14 |
15 | override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
16 | if ParticleConnect.handleUrl(url) {
17 | return true
18 | } else {
19 | return super.application(app, open: url, options: options)
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/ParticleNetwork-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | PROJECT_UUID
13 | 199cb36a-3542-4a8c-a377-423d8bec500b
14 | PROJECT_CLIENT_KEY
15 | cLBxYFEIic3VN7o074Dd1A9Ct1VVl33B6qobu2QK
16 | PROJECT_APP_UUID
17 | 6c11e6fe-3b68-418b-9176-70298b4a74cb
18 |
19 |
20 |
--------------------------------------------------------------------------------
/particle-connect/example/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/particle-connect/example/lib/theme.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | const MaterialColor pnPalette = MaterialColor(_mcgpalette0PrimaryValue, {
4 | 50: Color(0xFFF4EBFE),
5 | 100: Color(0xFFE3CDFE),
6 | 200: Color(0xFFD1ABFD),
7 | 300: Color(0xFFBE89FC),
8 | 400: Color(0xFFB070FB),
9 | 500: Color(_mcgpalette0PrimaryValue),
10 | 600: Color(0xFF9A4FF9),
11 | 700: Color(0xFF9046F9),
12 | 800: Color(0xFF863CF8),
13 | 900: Color(0xFF752CF6),
14 | });
15 | const int _mcgpalette0PrimaryValue = 0xFFA257FA;
16 |
17 | const MaterialColor pnPaletteAccent = MaterialColor(_mcgpalette0AccentValue, {
18 | 100: Color(0xFFFFFFFF),
19 | 200: Color(_mcgpalette0AccentValue),
20 | 400: Color(0xFFDFCFFF),
21 | 700: Color(0xFFCFB6FF),
22 | });
23 | const int _mcgpalette0AccentValue = 0xFFFFFFFF;
24 |
--------------------------------------------------------------------------------
/particle-connect/ios/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | .vagrant/
3 | .sconsign.dblite
4 | .svn/
5 |
6 | .DS_Store
7 | *.swp
8 | profile
9 |
10 | DerivedData/
11 | build/
12 | GeneratedPluginRegistrant.h
13 | GeneratedPluginRegistrant.m
14 |
15 | .generated/
16 |
17 | *.pbxuser
18 | *.mode1v3
19 | *.mode2v3
20 | *.perspectivev3
21 |
22 | !default.pbxuser
23 | !default.mode1v3
24 | !default.mode2v3
25 | !default.perspectivev3
26 |
27 | xcuserdata
28 |
29 | *.moved-aside
30 |
31 | *.pyc
32 | *sync/
33 | Icon?
34 | .tags*
35 |
36 | /Flutter/Generated.xcconfig
37 | /Flutter/ephemeral/
38 | /Flutter/flutter_export_environment.sh
--------------------------------------------------------------------------------
/particle-connect/ios/Assets/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-connect/ios/Assets/.gitkeep
--------------------------------------------------------------------------------
/particle-connect/lib/model/rpc_url_config.dart:
--------------------------------------------------------------------------------
1 | class RpcUrlConfig {
2 | String evmUrl;
3 | String solUrl;
4 |
5 | RpcUrlConfig(this.evmUrl, this.solUrl);
6 |
7 | RpcUrlConfig.fromJson(Map json)
8 | : evmUrl = json['evm_url'],
9 | solUrl = json['sol_url'];
10 |
11 | Map toJson() => {'evm_url': evmUrl, 'sol_url': solUrl};
12 | }
13 |
--------------------------------------------------------------------------------
/particle-connect/lib/model/sign_in_with_ethereum.dart:
--------------------------------------------------------------------------------
1 | class Siwe {
2 | String message;
3 | String signature;
4 |
5 | Siwe(this.message, this.signature);
6 | }
7 |
--------------------------------------------------------------------------------
/particle-connect/lib/model/wallet_ready_state.dart:
--------------------------------------------------------------------------------
1 | enum WalletReadyState {
2 | /// User installed the wallet, check by package name
3 | installed,
4 |
5 | /// User not install the wallet.
6 | notDetected,
7 |
8 | /// Loadable wallets are always available to you. Since you can load them at any time
9 | loadable,
10 |
11 | /// The wallet is not support current chain
12 | unsupported,
13 |
14 | /// Can't detect if user install the wallet, maybe the wallet doesn't has a scheme.
15 | undetectable,
16 | }
17 |
--------------------------------------------------------------------------------
/particle-wallet/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
26 | /pubspec.lock
27 | **/doc/api/
28 | .dart_tool/
29 | .packages
30 | build/
31 |
--------------------------------------------------------------------------------
/particle-wallet/README.md:
--------------------------------------------------------------------------------
1 | # particle_wallet
2 |
3 | A flutter plugin project for particle wallet
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter
8 | [plug-in package](https://flutter.dev/developing-packages/),
9 | a specialized package that includes platform-specific implementation code for
10 | Android and/or iOS.
11 |
12 | For help getting started with Flutter development, view the
13 | [online documentation](https://flutter.dev/docs), which offers tutorials,
14 | samples, guidance on mobile development, and a full API reference.
15 |
16 |
--------------------------------------------------------------------------------
/particle-wallet/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:flutter_lints/flutter.yaml
2 |
3 | # Additional information about this file can be found at
4 | # https://dart.dev/guides/language/analysis-options
5 |
--------------------------------------------------------------------------------
/particle-wallet/android/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .cxx
10 |
--------------------------------------------------------------------------------
/particle-wallet/android/consumer-rules.pro:
--------------------------------------------------------------------------------
1 | -keep class network.particle.**{*;}
2 | -dontwarn com.network.particle.**
--------------------------------------------------------------------------------
/particle-wallet/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'particle_wallet'
2 |
--------------------------------------------------------------------------------
/particle-wallet/android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/particle-wallet/android/src/main/kotlin/network/particle/wallet_plugin/module/SupportChain.java:
--------------------------------------------------------------------------------
1 | package network.particle.wallet_plugin.module;
2 |
3 | import com.google.gson.annotations.SerializedName;
4 | import com.particle.base.model.DAppMetadata;
5 |
6 |
7 | public class SupportChain {
8 |
9 | @SerializedName("chain_name")
10 | public String chainName;
11 |
12 | @SerializedName("chain_id")
13 | public long chainId;
14 |
15 |
16 |
17 | @SerializedName("env")
18 | public String env;
19 |
20 | @SerializedName("metadata")
21 | public DAppMetadata metadata;
22 |
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/particle-wallet/android/src/main/kotlin/network/particle/wallet_plugin/utils/WalletScope.kt:
--------------------------------------------------------------------------------
1 | package network.particle.wallet_plugin.utils
2 |
3 | import kotlinx.coroutines.CoroutineScope
4 | import kotlinx.coroutines.Dispatchers
5 | import kotlinx.coroutines.SupervisorJob
6 | import kotlin.coroutines.CoroutineContext
7 |
8 | object WalletScope : CoroutineScope {
9 | override val coroutineContext: CoroutineContext = SupervisorJob() + Dispatchers.Main
10 | }
11 |
--------------------------------------------------------------------------------
/particle-wallet/android/src/main/res/layout/activity_flutter_login_opt.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
--------------------------------------------------------------------------------
/particle-wallet/android/src/main/res/values/themes.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
13 |
14 |
--------------------------------------------------------------------------------
/particle-wallet/example/README.md:
--------------------------------------------------------------------------------
1 | # particle_wallet_example
2 |
3 | Demonstrates how to use the particle_wallet plugin.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13 |
14 | For help getting started with Flutter development, view the
15 | [online documentation](https://docs.flutter.dev/), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/particle-wallet/example/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 | **/*.keystore
13 | **/*.jks
14 |
--------------------------------------------------------------------------------
/particle-wallet/example/android/app/src/main/kotlin/network/particle/wallet_plugin/example/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package network.particle.wallet_plugin.example
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/particle-wallet/example/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/particle-wallet/example/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/particle-wallet/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-wallet/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-wallet/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-wallet/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-wallet/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/particle-wallet/example/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-wallet/example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/particle-wallet/example/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip
6 |
--------------------------------------------------------------------------------
/particle-wallet/example/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/particle-wallet/example/ios/.gitignore:
--------------------------------------------------------------------------------
1 | **/dgph
2 | *.mode1v3
3 | *.mode2v3
4 | *.moved-aside
5 | *.pbxuser
6 | *.perspectivev3
7 | **/*sync/
8 | .sconsign.dblite
9 | .tags*
10 | **/.vagrant/
11 | **/DerivedData/
12 | Icon?
13 | **/Pods/
14 | **/.symlinks/
15 | profile
16 | xcuserdata
17 | **/.generated/
18 | Flutter/App.framework
19 | Flutter/Flutter.framework
20 | Flutter/Flutter.podspec
21 | Flutter/Generated.xcconfig
22 | Flutter/ephemeral/
23 | Flutter/app.flx
24 | Flutter/app.zip
25 | Flutter/flutter_assets/
26 | Flutter/flutter_export_environment.sh
27 | ServiceDefinitions.json
28 | Runner/GeneratedPluginRegistrant.*
29 |
30 | # Exceptions to above rules.
31 | !default.mode1v3
32 | !default.mode2v3
33 | !default.pbxuser
34 | !default.perspectivev3
35 |
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 | import ParticleConnect
4 |
5 | @UIApplicationMain
6 | @objc class AppDelegate: FlutterAppDelegate {
7 | override func application(
8 | _ application: UIApplication,
9 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
10 | ) -> Bool {
11 | GeneratedPluginRegistrant.register(with: self)
12 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
13 | }
14 |
15 | override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
16 | if ParticleConnect.handleUrl(url) {
17 | return true
18 | } else {
19 | return super.application(app, open: url, options: options)
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/ParticleNetwork-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | PROJECT_UUID
7 | 7399450c-7c80-4fa9-b61a-58c815a821a2
8 | PROJECT_CLIENT_KEY
9 | cip1DpxvzNMYekotllYMmiTVtpNClCaCEccjSkqw
10 | PROJECT_APP_UUID
11 | 41326c93-7584-4923-9051-19f44027b959
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/particle-wallet/example/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/particle-wallet/example/lib/pages/wallet_demo/custom_bottom_sheet.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class CustomBottomSheet extends StatelessWidget {
4 | final List options;
5 | final Function(int) onSelect;
6 |
7 | const CustomBottomSheet({super.key, required this.options, required this.onSelect});
8 |
9 | @override
10 | Widget build(BuildContext context) {
11 | return Wrap(
12 | children: List.generate(options.length, (index) {
13 | return ListTile(
14 | title: Center(
15 | child: Text(options[index]),
16 | ),
17 | onTap: () {
18 | onSelect(index);
19 | },
20 | );
21 | }),
22 | );
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/particle-wallet/example/lib/theme.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | const MaterialColor pnPalette = MaterialColor(_mcgpalette0PrimaryValue, {
4 | 50: Color(0xFFF4EBFE),
5 | 100: Color(0xFFE3CDFE),
6 | 200: Color(0xFFD1ABFD),
7 | 300: Color(0xFFBE89FC),
8 | 400: Color(0xFFB070FB),
9 | 500: Color(_mcgpalette0PrimaryValue),
10 | 600: Color(0xFF9A4FF9),
11 | 700: Color(0xFF9046F9),
12 | 800: Color(0xFF863CF8),
13 | 900: Color(0xFF752CF6),
14 | });
15 | const int _mcgpalette0PrimaryValue = 0xFFA257FA;
16 |
17 | const MaterialColor pnPaletteAccent = MaterialColor(_mcgpalette0AccentValue, {
18 | 100: Color(0xFFFFFFFF),
19 | 200: Color(_mcgpalette0AccentValue),
20 | 400: Color(0xFFDFCFFF),
21 | 700: Color(0xFFCFB6FF),
22 | });
23 | const int _mcgpalette0AccentValue = 0xFFFFFFFF;
24 |
--------------------------------------------------------------------------------
/particle-wallet/ios/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | .vagrant/
3 | .sconsign.dblite
4 | .svn/
5 |
6 | .DS_Store
7 | *.swp
8 | profile
9 |
10 | DerivedData/
11 | build/
12 | GeneratedPluginRegistrant.h
13 | GeneratedPluginRegistrant.m
14 |
15 | .generated/
16 |
17 | *.pbxuser
18 | *.mode1v3
19 | *.mode2v3
20 | *.perspectivev3
21 |
22 | !default.pbxuser
23 | !default.mode1v3
24 | !default.mode2v3
25 | !default.perspectivev3
26 |
27 | xcuserdata
28 |
29 | *.moved-aside
30 |
31 | *.pyc
32 | *sync/
33 | Icon?
34 | .tags*
35 |
36 | /Flutter/Generated.xcconfig
37 | /Flutter/ephemeral/
38 | /Flutter/flutter_export_environment.sh
--------------------------------------------------------------------------------
/particle-wallet/ios/Assets/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Particle-Network/particle-flutter/1cce1004ed9ea4dccf0df75cf0b3d2ad95ca4771/particle-wallet/ios/Assets/.gitkeep
--------------------------------------------------------------------------------
/particle-wallet/lib/model/theme.dart:
--------------------------------------------------------------------------------
1 | enum Theme {
2 | light,
3 | dark,
4 | }
5 |
--------------------------------------------------------------------------------
/particle-wallet/lib/model/wallet_display.dart:
--------------------------------------------------------------------------------
1 | enum WalletDisplay {
2 | token,
3 | nft,
4 | }
5 |
--------------------------------------------------------------------------------
/particle-wallet/lib/model/wallet_meta_data.dart:
--------------------------------------------------------------------------------
1 | class WalletMetaData {
2 | String name;
3 | String icon;
4 | String url;
5 | String description;
6 |
7 | WalletMetaData(this.name, this.icon, this.url, this.description);
8 |
9 | WalletMetaData.fromJson(Map json)
10 | : name = json['name'],
11 | icon = json['icon'],
12 | url = json['url'],
13 | description = json['description'];
14 |
15 | Map toJson() =>
16 | {'name': name, 'icon': icon, 'url': url, 'description': description};
17 | }
18 |
--------------------------------------------------------------------------------