Skip to content

Commit 1c0991e

Browse files
committed
checkpoint
1 parent b14df94 commit 1c0991e

8 files changed

Lines changed: 133 additions & 129 deletions

File tree

sdk/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version '3.0.0-alpha.01'
33

44
buildscript {
55
ext.kotlin_version = '1.5.31'
6-
ext.nami_sdk_version = '3.0.0-alpha.07'
6+
ext.nami_sdk_version = '3.0.0-alpha.08'
77
repositories {
88
mavenCentral()
99
google()

sdk/android/src/main/kotlin/com/namiml/flutter/sdk/FlutterNamiSdkPlugin.kt

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,9 @@ class FlutterNamiSdkPlugin : FlutterPlugin, MethodCallHandler, ActivityAware {
244244
"loggedInId" -> {
245245
result.success(NamiCustomerManager.loggedInId())
246246
}
247+
"isLoggedIn" -> {
248+
result.success(NamiCustomerManager.isLoggedIn())
249+
}
247250
"launch" -> {
248251
val callback = { launchResult: LaunchCampaignResult ->
249252
when (launchResult) {
@@ -271,6 +274,9 @@ class FlutterNamiSdkPlugin : FlutterPlugin, MethodCallHandler, ActivityAware {
271274
)
272275
}
273276
}
277+
"dismiss" -> {
278+
result.notImplemented()
279+
}
274280
"journeyState" -> {
275281
val stateMap = NamiCustomerManager.journeyState()?.convertToMap()
276282
result.success(stateMap)
@@ -327,15 +333,6 @@ class FlutterNamiSdkPlugin : FlutterPlugin, MethodCallHandler, ActivityAware {
327333
result.success(NamiPurchaseManager.anySKUIDPurchased(it))
328334
}
329335
}
330-
"buySKU" -> {
331-
val skuRefId = call.arguments as? String
332-
val activity = currentActivityWeakReference?.get()
333-
if (skuRefId != null && activity != null) {
334-
NamiPurchaseManager.buySKU(activity, skuRefId) {
335-
result.success(it.convertToMap())
336-
}
337-
}
338-
}
339336
"consumePurchasedSKU" -> {
340337
val skuRefId = call.arguments as? String
341338
if (skuRefId != null) {

sdk/example/ios/Podfile.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
PODS:
22
- Flutter (1.0.0)
3-
- Nami (2.9.3)
4-
- nami_flutter (1.0.0):
3+
- Nami (3.0.0-rc.03)
4+
- nami_flutter (3.0.0-alpha.01):
55
- Flutter
6-
- Nami (= 2.9.3)
6+
- Nami (= 3.0.0-rc.03)
77

88
DEPENDENCIES:
99
- Flutter (from `Flutter`)
@@ -20,10 +20,10 @@ EXTERNAL SOURCES:
2020
:path: ".symlinks/plugins/nami_flutter/ios"
2121

2222
SPEC CHECKSUMS:
23-
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
24-
Nami: 65926f3a18c836faffcc7eb1ed103ff076bbb7cc
25-
nami_flutter: dc2fb5802766b013161b434dd480913c63229abc
23+
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
24+
Nami: 2668736ea8003575ce29ea9afa328b65c5a31674
25+
nami_flutter: 8072cba2622342f446726f483628b8f5e5576926
2626

27-
PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
27+
PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3
2828

29-
COCOAPODS: 1.10.1
29+
COCOAPODS: 1.11.3

sdk/example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,12 +358,14 @@
358358
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
359359
CLANG_ENABLE_MODULES = YES;
360360
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
361+
DEVELOPMENT_TEAM = K6APTMK8Y8;
361362
ENABLE_BITCODE = NO;
362363
FRAMEWORK_SEARCH_PATHS = (
363364
"$(inherited)",
364365
"$(PROJECT_DIR)/Flutter",
365366
);
366367
INFOPLIST_FILE = Runner/Info.plist;
368+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
367369
LD_RUNPATH_SEARCH_PATHS = (
368370
"$(inherited)",
369371
"@executable_path/Frameworks",
@@ -496,12 +498,14 @@
496498
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
497499
CLANG_ENABLE_MODULES = YES;
498500
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
501+
DEVELOPMENT_TEAM = K6APTMK8Y8;
499502
ENABLE_BITCODE = NO;
500503
FRAMEWORK_SEARCH_PATHS = (
501504
"$(inherited)",
502505
"$(PROJECT_DIR)/Flutter",
503506
);
504507
INFOPLIST_FILE = Runner/Info.plist;
508+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
505509
LD_RUNPATH_SEARCH_PATHS = (
506510
"$(inherited)",
507511
"@executable_path/Frameworks",
@@ -526,12 +530,14 @@
526530
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
527531
CLANG_ENABLE_MODULES = YES;
528532
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
533+
DEVELOPMENT_TEAM = K6APTMK8Y8;
529534
ENABLE_BITCODE = NO;
530535
FRAMEWORK_SEARCH_PATHS = (
531536
"$(inherited)",
532537
"$(PROJECT_DIR)/Flutter",
533538
);
534539
INFOPLIST_FILE = Runner/Info.plist;
540+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
535541
LD_RUNPATH_SEARCH_PATHS = (
536542
"$(inherited)",
537543
"@executable_path/Frameworks",

sdk/example/lib/main.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ class MyApp extends StatefulWidget {
2626

2727
class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
2828
static const _testExternalIdentifier = "9a9999a9-99aa-99a9-aa99-999a999999a8";
29-
// TODO: uncomment release
29+
// prod
3030
// static const _androidAppPlatformId = "3d062066-9d3c-430e-935d-855e2c56dd8e";
31-
// TODO: delete this before release
31+
// static const _iosAppPlatformId = "002e2c49-7f66-4d22-a05c-1dc9f2b7f2af";
32+
// nami staging
3233
static const _androidAppPlatformId = "aaf69dba-ef67-40f5-82ec-c7623a2848a6";
33-
static const _iosAppPlatformId = "002e2c49-7f66-4d22-a05c-1dc9f2b7f2af";
34+
static const _iosAppPlatformId = "1b3f8f1f-c471-448e-b5c1-23059ee65bac";
3435

3536
@override
3637
Widget build(BuildContext context) {

0 commit comments

Comments
 (0)