Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sneha-s committed Mar 27, 2024
1 parent 2df58f8 commit eebdf2e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion sdk/ios/Classes/SwiftFlutterNamiSdkPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ public class SwiftFlutterNamiSdkPlugin: NSObject, FlutterPlugin {
map["componentChange"] = event.componentChange?.convertToMap()
map["segmentId"] = event.segmentId
map["externalSegmentId"] = event.externalSegmentId
// map["paywallLaunchContext"] = event.paywallLaunchContext?.convertToMap()
// map["paywallLaunchContext"] = event.paywallLaunchContext?.convertToMap()
map["deeplinkUrl"] = event.externalSegmentId
map["sku"] = event.sku?.convertToMap()
map["purchaseError"] = event.purchaseError
Expand Down
10 changes: 2 additions & 8 deletions sdk/lib/billing/nami_purchase.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ class NamiPurchase {
/// The date and time when the purchase was initiated
final int purchaseInitiatedTimestamp;


/// The unique identifier for this NamiPurchase
final String skuId;

Expand All @@ -17,11 +16,8 @@ class NamiPurchase {
this.transactionIdentifier, this.localizedDescription);

factory NamiPurchase.fromMap(Map<dynamic, dynamic> map) {
return NamiPurchase(
map['purchaseInitiatedTimestamp'],
map['skuId'],
map['transactionIdentifier'],
map['localizedDescription']);
return NamiPurchase(map['purchaseInitiatedTimestamp'], map['skuId'],
map['transactionIdentifier'], map['localizedDescription']);
}

@override
Expand All @@ -32,5 +28,3 @@ class NamiPurchase {
'$localizedDescription}';
}
}


1 change: 0 additions & 1 deletion sdk/lib/paywall/nami_paywall_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import 'package:nami_flutter/paywall/nami_sku.dart';

import '../channel.dart';


/// Class responsible for managing all aspects of a paywall in the Nami SDK
class NamiPaywallManager {
static const EventChannel _signInEvent = EventChannel('signInEvent');
Expand Down

0 comments on commit eebdf2e

Please sign in to comment.