-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makes configure, register, and the purchase controller work
- Loading branch information
Showing
31 changed files
with
23,738 additions
and
412 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
android/src/main/java/com/superwallreactnative/PurchaseControllerModule.kt
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
android/src/main/java/com/superwallreactnative/ReactNativeActivityProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.superwallreactnative | ||
|
||
import android.app.Activity | ||
import com.facebook.react.bridge.ReactApplicationContext | ||
import com.superwall.sdk.misc.ActivityProvider | ||
|
||
class ReactNativeActivityProvider(private val reactContext: ReactApplicationContext) : ActivityProvider { | ||
|
||
override fun getCurrentActivity(): Activity? { | ||
// Utilizes ReactContext to get the current activity | ||
return reactContext.currentActivity | ||
} | ||
} |
169 changes: 117 additions & 52 deletions
169
android/src/main/java/com/superwallreactnative/SuperwallReactNativeModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 0 additions & 65 deletions
65
android/src/main/java/com/superwallreactnative/bridges/PurchaseResultBridge.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.