-
Notifications
You must be signed in to change notification settings - Fork 3
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 #14 from apphud/APH-785
Aph 785
- Loading branch information
Showing
29 changed files
with
786 additions
and
224 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.apphud.sdk | ||
|
||
import android.content.Context | ||
import android.content.pm.ApplicationInfo | ||
import java.util.concurrent.atomic.AtomicInteger | ||
|
||
internal fun Context.isDebuggable(): Boolean { | ||
return 0 != this.applicationInfo.flags and ApplicationInfo.FLAG_DEBUGGABLE | ||
} | ||
|
||
internal fun AtomicInteger.isBothSkuLoaded(): Boolean { | ||
return this.get() == 2 | ||
} |
Oops, something went wrong.