-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating permissions for modules so that the interface is accessible …
…from kotlin. Adding kotlin sample file.
- Loading branch information
1 parent
83c884c
commit 0ff064d
Showing
13 changed files
with
68 additions
and
27 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
33 changes: 33 additions & 0 deletions
33
app/src/main/java/ly/count/android/demo/ActivityExampleKotlin.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,33 @@ | ||
package ly.count.android.demo | ||
|
||
import android.app.Activity | ||
import android.content.res.Configuration | ||
import ly.count.android.sdk.Countly | ||
import ly.count.android.sdk.ModuleAPM | ||
|
||
class ActivityExampleKotlin : Activity() { | ||
override fun onStart() { | ||
super.onStart() | ||
Countly.sharedInstance().onStart(this); | ||
|
||
Countly.sharedInstance().apm().startTrace("fff"); | ||
Countly.sharedInstance().consent().checkAllConsent(); | ||
Countly.sharedInstance().crashes().addCrashBreadcrumb("ddd"); | ||
Countly.sharedInstance().events().recordEvent("ddd"); | ||
val count : Int = Countly.sharedInstance().ratings().getAutomaticStarRatingSessionLimit(); | ||
Countly.sharedInstance().remoteConfig().allValues; | ||
Countly.sharedInstance().sessions().beginSession() | ||
Countly.sharedInstance().views().isAutomaticViewTrackingEnabled; | ||
|
||
} | ||
|
||
override fun onStop() { | ||
Countly.sharedInstance().onStop(); | ||
super.onStop() | ||
} | ||
|
||
override fun onConfigurationChanged(newConfig: Configuration?) { | ||
super.onConfigurationChanged(newConfig) | ||
Countly.sharedInstance().onConfigurationChanged(newConfig); | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,7 +158,7 @@ void changeDeviceIdWithMerge(String deviceId) { | |
} | ||
|
||
@Override | ||
public void halt() { | ||
void halt() { | ||
|
||
} | ||
} |
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