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
public class ThemeUtils { | |
/** | |
* MODE_NIGHT_NO | |
*/ | |
public static final int LIGHT = AppCompatDelegate.MODE_NIGHT_NO; | |
/** | |
* MODE_NIGHT_YES | |
*/ |
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
<style name="AppTheme_theme" parent="Theme.AppCompat.DayNight.NoActionBar"/> |
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.zzivi.core.security; | |
public interface EncryptionHelper { | |
String encrypt(String input) throws Exception; | |
String decrypt(String input) throws Exception; | |
} |
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
@RunWith(MockitoJUnitRunner::class) | |
class MainPresenterImplTest { | |
@Mock | |
private lateinit var apiService: ApiService | |
@Mock | |
private lateinit var mainView: MainView | |
private lateinit var testScheduler: TestScheduler |
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
dependencies { | |
testImplementation 'junit:junit:4.12' | |
testImplementation "org.mockito:mockito-core:${rootProject.ext.mockitoVersion}" | |
androidTestImplementation "org.mockito:mockito-core:${rootProject.ext.mockitoVersion}" | |
androidTestImplementation "org.mockito:mockito-android:${rootProject.ext.mockitoVersion}" | |
androidTestImplementation "org.hamcrest:hamcrest-library:${rootProject.ext.hamcrest}" | |
testImplementation "org.hamcrest:hamcrest-library:${rootProject.ext.hamcrest}" | |
androidTestImplementation "com.android.support.test:runner:${rootProject.ext.runnerVersion}" | |
androidTestImplementation "com.android.support.test:rules:$rootProject.ext.rulesVersion" | |
androidTestImplementation "com.android.support.test.espresso:espresso-core:${rootProject.ext.espressoVersion}" |
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
class PassTypeSafeFragment : Fragment() { | |
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, | |
savedInstanceState: Bundle?): View? { | |
// Inflate the layout for this fragment | |
return inflater.inflate(R.layout.fragment_pass_type_safe, container, false) | |
} | |
override fun onActivityCreated(savedInstanceState: Bundle?) { | |
super.onActivityCreated(savedInstanceState) |
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
class TypeSafeFragment : Fragment() { | |
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, | |
savedInstanceState: Bundle?): View? { | |
// Inflate the layout for this fragment | |
return inflater.inflate(R.layout.fragment_type_safe, container, false) | |
} | |
override fun onActivityCreated(savedInstanceState: Bundle?) { | |
super.onActivityCreated(savedInstanceState) |
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
class PassBundleFragment : Fragment() { | |
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, | |
savedInstanceState: Bundle?): View? { | |
return inflater.inflate(R.layout.fragment_pass_bundle, container, false) | |
} | |
override fun onActivityCreated(savedInstanceState: Bundle?) { | |
super.onActivityCreated(savedInstanceState) | |
val name = arguments?.getString("name") |
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
class BundleFragment : Fragment() { | |
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, | |
savedInstanceState: Bundle?): View? { | |
return inflater.inflate(R.layout.fragment_bundle, container, false) | |
} | |
override fun onActivityCreated(savedInstanceState: Bundle?) { | |
super.onActivityCreated(savedInstanceState) | |
val bundle = Bundle() |
NewerOlder