-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from Teknasyon-Teknoloji/feature/refactor
[refactor]: refactor sdk init
- Loading branch information
Showing
79 changed files
with
1,037 additions
and
1,171 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
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
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
25 changes: 3 additions & 22 deletions
25
desk360/src/main/java/com/teknasyon/desk360/helper/Desk360Client.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 |
---|---|---|
@@ -1,28 +1,9 @@ | ||
package com.teknasyon.desk360.helper | ||
|
||
import android.content.Context | ||
import android.content.Intent | ||
import com.teknasyon.desk360.view.activity.Desk360SplashActivity | ||
|
||
/** | ||
* customer-specific information is kept | ||
*/ | ||
class Desk360Client { | ||
var ticketId: String? = "" | ||
var notificationToken: String? = "" | ||
var deviceId: String? = "" | ||
|
||
fun start(context: Context) { | ||
context.startActivity(getIntent(context)) | ||
} | ||
|
||
fun getIntent(context: Context): Intent { | ||
return Intent(context, Desk360SplashActivity::class.java).apply { | ||
addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP) | ||
addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP) | ||
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) | ||
|
||
putExtra(Desk360SplashActivity.EXTRA_APP_ID, context.applicationInfo.processName) | ||
putExtra(Desk360SplashActivity.EXTRA_TARGET_ID, ticketId) | ||
putExtra(Desk360SplashActivity.EXTRA_TOKEN, notificationToken) | ||
putExtra(Desk360SplashActivity.EXTRA_DEVICE_TOKEN, deviceId) | ||
} | ||
} | ||
} |
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
120 changes: 0 additions & 120 deletions
120
desk360/src/main/java/com/teknasyon/desk360/helper/Desk360Constants.kt
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.