Skip to content
Permalink
Browse files

release key

  • Loading branch information...
Husseinhj committed Apr 24, 2019
1 parent fb4b256 commit 250899da1f7a11b139555f6449cdf4bb490cbe16
@@ -0,0 +1 @@
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":21},"path":"app-release.apk","properties":{"packageId":"com.adpdigital.chabok.starter","split":"","minSdkVersion":"16"}}]
@@ -44,59 +44,59 @@ protected void onCreate(Bundle savedInstanceState) {
chabok.showProtectedAppSettings(MainActivity.this, getString(R.string.app_name), null, null);
}

this.userIdTxt = findViewById(R.id.useridTextView);
this.channelTxt = findViewById(R.id.channelTextView);
this.userIdTxt = (EditText) findViewById(R.id.useridTextView);
this.channelTxt = (EditText) findViewById(R.id.channelTextView);

this.messageBodyTxt = findViewById(R.id.messageBodyEditText);
this.messgeUserIdTxt = findViewById(R.id.messageUseridTextView);
this.messageChannelTxt = findViewById(R.id.messageChannelTextView);
this.messageBodyTxt = (EditText) findViewById(R.id.messageBodyEditText);
this.messgeUserIdTxt = (EditText) findViewById(R.id.messageUseridTextView);
this.messageChannelTxt = (EditText) findViewById(R.id.messageChannelTextView);

this.tagNameTxt = findViewById(R.id.tagsNameTextView);
this.messageLogsTxt = findViewById(R.id.messageLogsTextView);
this.tagNameTxt = (EditText) findViewById(R.id.tagsNameTextView);
this.messageLogsTxt = (TextView) findViewById(R.id.messageLogsTextView);

final String chabokUserId = AdpPushClient.get().getUserId();
if (chabokUserId != null) {
this.userIdTxt.setText(chabokUserId);
}

// Register to chabok
Button registerButton = findViewById(R.id.registerButton);
Button registerButton = (Button) findViewById(R.id.registerButton);
registerButton.setOnClickListener(this.registerBtnOnClick());

Button unregisterButton = findViewById(R.id.unregisterButton);
Button unregisterButton = (Button) findViewById(R.id.unregisterButton);
unregisterButton.setOnClickListener(this.unregisterBtnOnClick());

Button subscribeButton = findViewById(R.id.subscribeButton);
Button subscribeButton = (Button) findViewById(R.id.subscribeButton);
subscribeButton.setOnClickListener(this.subscribeBtnOnClick());

Button unsubscribeButton = findViewById(R.id.unsubscribeButton);
Button unsubscribeButton = (Button) findViewById(R.id.unsubscribeButton);
unsubscribeButton.setOnClickListener(this.unsubscribeBtnOnClick());

// Publish
Button publishEventButton = findViewById(R.id.publishEventButton);
Button publishEventButton = (Button) findViewById(R.id.publishEventButton);
publishEventButton.setOnClickListener(this.publishEventBtnOnClick());

Button publishMessageButton = findViewById(R.id.publishMessageButton);
Button publishMessageButton = (Button) findViewById(R.id.publishMessageButton);
publishMessageButton.setOnClickListener(this.publishMessageBtnOnClick());

// Tag
Button addTagButton = findViewById(R.id.addTagButton);
Button addTagButton = (Button) findViewById(R.id.addTagButton);
addTagButton.setOnClickListener(this.addTagBtnOnClick());

Button removeTagButton = findViewById(R.id.removeTagButton);
Button removeTagButton = (Button) findViewById(R.id.removeTagButton);
removeTagButton.setOnClickListener(this.removeTagBtnOnClick());

// Track
Button addToCartButton = findViewById(R.id.addToCartButton);
Button addToCartButton = (Button) findViewById(R.id.addToCartButton);
addToCartButton.setOnClickListener(this.addToCartBtnOnClick());

Button purchaseButton = findViewById(R.id.purchaseButton);
Button purchaseButton = (Button) findViewById(R.id.purchaseButton);
purchaseButton.setOnClickListener(this.purchaseBtnOnClick());

Button likeButton = findViewById(R.id.likeButton);
Button likeButton = (Button) findViewById(R.id.likeButton);
likeButton.setOnClickListener(this.likeBtnOnClick());

Button commentButton = findViewById(R.id.commentButton);
Button commentButton = (Button) findViewById(R.id.commentButton);
commentButton.setOnClickListener(this.commentBtnOnClick());
}

@@ -193,7 +193,7 @@ public void onFailure(Throwable throwable) {

private void updateConnectionStatus(ConnectionStatus status) {
View connectionStatusView = findViewById(R.id.connectionStatusView);
TextView connectionStatus = findViewById(R.id.connectionStatusTextView);
TextView connectionStatus = (TextView) findViewById(R.id.connectionStatusTextView);

if (connectionStatus != null && status != null) {
switch (status) {
@@ -29,6 +29,8 @@ public void onCreate() {
String userId = chabok.getUserId();
if (userId != null && !userId.isEmpty()) {
chabok.register(userId);
} else {
chabok.registerAsGuest();
}
}

@@ -45,6 +47,7 @@ private synchronized void initPushClient() {
chabok.setDevelopment(true);
chabok.addListener(this);
chabok.addNotificationHandler(getNotificationHandler());
chabok.setDefaultTracker("8iFRmA");
}
}

BIN +2.26 KB build_key
Binary file not shown.
BIN +2.23 KB release
Binary file not shown.

0 comments on commit 250899d

Please sign in to comment.
You can’t perform that action at this time.