Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use Ramp Network name #15

Merged
merged 4 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

## 2.0.0

* Update native ramp sdk to support off-ramp
* Update native Ramp Network sdk to support off-ramp

## 1.0.2

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Ramp Flutter
# Ramp Network Flutter

Official Flutter wrapper for Ramp
Official Flutter wrapper for Ramp Network

## Getting Started

For installation & usage follow [Ramp Flutter documentation](https://docs.ramp.network/mobile/flutter-sdk/)
For installation & usage follow [Ramp Network Flutter documentation](https://docs.ramp.network/mobile/flutter-sdk/)
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class RampFlutterPlugin : FlutterPlugin, MethodCallHandler, ActivityAware {

private fun makeConfiguration(arguments: Any): Config? {
val map = arguments as? Map<*, *> ?: return null
val hostAppName = map["hostAppName"] as? String ?: "Ramp Integration"
val hostAppName = map["hostAppName"] as? String ?: "Ramp Network Integration"
val hostLogoUrl = map["hostLogoUrl"] as? String ?: "https://ramp.network/assets/images/Logo.svg"
val url = map["url"] as? String ?: "https://app.ramp.network"
val config = Config(hostAppName, hostLogoUrl, url)
Expand Down
12 changes: 6 additions & 6 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class _RampFlutterAppState extends State<RampFlutterApp> {

@override
void initState() {
_configuration.hostAppName = "Ramp Flutter";
_configuration.hostAppName = "Ramp Network Flutter";
_configuration.url = _predefinedEnvironments[_selectedEnvironment];
_configuration.enabledFlows = ["ONRAMP", "OFFRAMP"];
_configuration.useSendCryptoCallback = true;
Expand All @@ -77,11 +77,11 @@ class _RampFlutterAppState extends State<RampFlutterApp> {
String purchaseViewToken,
String apiUrl,
) {
_showNotification("Ramp Notification", "onramp purchase created");
_showNotification("Ramp Network Notification", "onramp purchase created");
}

void onSendCryptoRequested(SendCryptoPayload payload) {
_showNotification("Ramp Notification", "send crypto requested");
_showNotification("Ramp Network Notification", "send crypto requested");
ramp.sendCrypto("123");
}

Expand All @@ -90,19 +90,19 @@ class _RampFlutterAppState extends State<RampFlutterApp> {
String saleViewToken,
String apiUrl,
) {
_showNotification("Ramp Notification", "offramp sale created");
_showNotification("Ramp Network Notification", "offramp sale created");
}

void onRampClosed() {
_showNotification("Ramp Notification", "ramp closed");
_showNotification("Ramp Network Notification", "ramp closed");
}

@override
Widget build(BuildContext context) {
return PlatformApp(
home: PlatformScaffold(
appBar: PlatformAppBar(
title: const Text('Ramp Flutter'),
title: const Text('Ramp Network Flutter'),
),
body: Padding(
padding: const EdgeInsets.fromLTRB(10, 0, 10, 0),
Expand Down
6 changes: 3 additions & 3 deletions ios/ramp_flutter.podspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Pod::Spec.new do |s|
s.name = 'ramp_flutter'
s.version = '1.0.1'
s.summary = 'Ramp iOS wrapper for Flutter.'
s.summary = 'Ramp Network iOS wrapper for Flutter.'
s.description = <<-DESC
Ramp for Flutter is a simple wrapper for native iOS and Android Ramp SDKs.
Ramp Network for Flutter is a simple wrapper for native iOS and Android Ramp Networkn SDKs.
jakubsta marked this conversation as resolved.
Show resolved Hide resolved
Unified API lets you write code once and use on any of the platforms.
Ramp Flutter SDK supports iOS and Android platforms.
Ramp Network Flutter SDK supports iOS and Android platforms.
DESC
s.homepage = 'https://docs.ramp.network/mobile/flutter-sdk/'
s.license = 'MIT'
Expand Down
2 changes: 1 addition & 1 deletion lib/ramp_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import 'package:ramp_flutter/send_crypto_payload.dart';

import 'configuration.dart';

/// Wrapper class for Ramp Flutter widget
/// Wrapper class for Ramp Network Flutter widget
class RampFlutter {
final MethodChannel _channel = const MethodChannel('ramp_flutter');

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ramp_flutter
description: Ramp for Flutter is a simple wrapper for native iOS and Android Ramp SDKs. Unified API lets you write code once and use on any of the platforms. Ramp Flutter SDK supports iOS and Android platforms.
description: Ramp Network for Flutter is a simple wrapper for native iOS and Android Ramp Network SDKs. Unified API lets you write code once and use on any of the platforms. Ramp Network Flutter SDK supports iOS and Android platforms.
version: 4.0.0
homepage: https://ramp.network/

Expand Down