Skip to content

Commit

Permalink
Merge pull request #61 from millionscard/remove-subscription-implemen…
Browse files Browse the repository at this point in the history
…tation

remove subscription implementation
  • Loading branch information
taitmbarek authored May 1, 2024
2 parents 286f528 + 686170a commit 427b9d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@
import com.knotapi.cardonfileswitcher.models.Configuration;
import com.knotapi.cardonfileswitcher.models.Environment;
import com.knotapi.cardonfileswitcher.interfaces.OnSessionEventListener;
import com.knotapi.cardonfileswitcher.SubscriptionCanceler;
import com.knotapi.cardonfileswitcher.models.Options;

@ReactModule(name = KnotapiModule.NAME)
public class KnotapiModule extends ReactContextBaseJavaModule {
public static final String NAME = "Knotapi";
CardOnFileSwitcher cardOnFileSwitcher;
SubscriptionCanceler subscriptionCanceler;
Context context;

public KnotapiModule(ReactApplicationContext reactContext) {
Expand Down Expand Up @@ -193,10 +191,6 @@ public void updateCardSwitcherSessionId(String sessionId) {

@ReactMethod
public void openSubscriptionCanceler(ReadableMap params) {
Configuration configuration = getConfiguration(params);
Options options = getOptions(params);
subscriptionCanceler = subscriptionCanceler.getInstance();
subscriptionCanceler.init(context, configuration, options, getOnSessionEventListener("SubscriptionCanceler-"));
subscriptionCanceler.openSubscriptionCanceller();
// TODO: Invoke subscription canceler
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-knotapi",
"version": "0.1.72",
"version": "0.1.73",
"description": "test",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down

0 comments on commit 427b9d6

Please sign in to comment.