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
package com.isscroberto.onebreath.utils | |
import java.security.MessageDigest | |
enum class Algorithm(val code: String) { | |
SHA1("SHA-1"), SHA256("SHA-256"), SHA512("SHA-512") | |
} | |
fun String.hash (algorithm: Algorithm): String { | |
val hexArray = "0123456789ABCDEF" |
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
using System.Diagnostics.CodeAnalysis; | |
namespace YourNamespace | |
{ | |
[ExcludeFromCodeCoverage] | |
public class YourClass | |
{ | |
... | |
} | |
} |
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
os: | |
- linux | |
language: generic | |
sudo: false | |
addons: | |
apt: | |
# Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18 | |
sources: | |
- ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version | |
packages: |
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
<service android:name=".util.AlarmService"/> |
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
// Stop alarm. | |
context!!.stopService(Intent(context!!, AlarmService::class.java)) |
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
package com.isscroberto.powernap | |
import android.content.BroadcastReceiver | |
import android.content.Context | |
import android.content.Intent | |
import com.isscroberto.powernap.data.NapState | |
import com.isscroberto.powernap.util.NotificationUtil | |
import com.isscroberto.powernap.util.PrefUtil | |
import com.isscroberto.powernap.util.AlarmService |
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
package com.isscroberto.powernap.util | |
import android.app.Service | |
import android.content.Context | |
import android.content.Intent | |
import android.media.Ringtone | |
import android.media.RingtoneManager | |
import android.os.IBinder | |
class AlarmService : Service() { |
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
package com.isscroberto.powernap.splash | |
import android.animation.Animator | |
import android.animation.ValueAnimator | |
import android.content.Intent | |
import android.support.v7.app.AppCompatActivity | |
import android.os.Bundle | |
import com.isscroberto.powernap.R | |
import com.isscroberto.powernap.start.StartActivity | |
import android.view.animation.BounceInterpolator |
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
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<TextView | |
android:id="@+id/textTitle" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" |
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
package com.isscroberto.onebreath.splash | |
import android.content.Intent | |
import android.support.v7.app.AppCompatActivity | |
import android.os.Bundle | |
import com.crashlytics.android.Crashlytics | |
import com.isscroberto.onebreath.main.BreatheActivity | |
class SplashActivity : AppCompatActivity() { |
NewerOlder