├── extension ├── consumer-rules.pro ├── .gitignore ├── src │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── mobven │ │ │ │ └── extension │ │ │ │ ├── Int.kt │ │ │ │ ├── Long.kt │ │ │ │ ├── Boolean.kt │ │ │ │ ├── Constants.kt │ │ │ │ ├── Date.kt │ │ │ │ ├── Lifecycle.kt │ │ │ │ ├── Collection.kt │ │ │ │ ├── Double.kt │ │ │ │ ├── definitions │ │ │ │ └── CreditCardType.kt │ │ │ │ ├── dialogs │ │ │ │ ├── FullScreenDialogFragment.kt │ │ │ │ ├── MaterialAlertDialog.kt │ │ │ │ ├── CustomAlertDialog.kt │ │ │ │ └── BottomSheetExposer.kt │ │ │ │ ├── Event.kt │ │ │ │ ├── String.kt │ │ │ │ ├── View.kt │ │ │ │ └── Context.kt │ │ ├── AndroidManifest.xml │ │ └── res │ │ │ └── values │ │ │ └── styles.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── mobven │ │ │ └── extension │ │ │ ├── ExampleUnitTest.kt │ │ │ └── StringUnitTest.kt │ └── androidTest │ │ └── java │ │ └── com │ │ └── mobven │ │ └── extension │ │ └── ExampleInstrumentedTest.kt ├── proguard-rules.pro └── build.gradle ├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── google_maps_api.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── themes.xml │ │ │ │ └── strings.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── drawable │ │ │ │ ├── bg_bottom.xml │ │ │ │ ├── ic_baseline_check.xml │ │ │ │ ├── icons_32_ic_32_salary_account_white.xml │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── layout │ │ │ │ ├── fragment_flow.xml │ │ │ │ ├── fragment_text.xml │ │ │ │ ├── activity_geofence.xml │ │ │ │ ├── activity_maps.xml │ │ │ │ ├── activity_main.xml │ │ │ │ ├── fragment_menu.xml │ │ │ │ ├── item_horizontal_feed.xml │ │ │ │ ├── activity_concat_example.xml │ │ │ │ ├── dialog_full_screen.xml │ │ │ │ ├── item_menu.xml │ │ │ │ ├── custom_dialog.xml │ │ │ │ ├── fragment_single_selectable_rv.xml │ │ │ │ ├── activity_custom_shadow.xml │ │ │ │ ├── activity_choose_from_gallery.xml │ │ │ │ ├── dialog_bottom_sheet.xml │ │ │ │ ├── item_horizontal_sub_rv.xml │ │ │ │ ├── item_selectable.xml │ │ │ │ └── activity_view_ext_demo.xml │ │ │ ├── values-v23 │ │ │ │ └── themes.xml │ │ │ ├── values-night │ │ │ │ └── themes.xml │ │ │ ├── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ │ └── navigation │ │ │ │ └── nav_main.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── mobven │ │ │ │ └── extensions │ │ │ │ ├── recyclerview │ │ │ │ ├── singleselectable │ │ │ │ │ ├── SelectableModel.kt │ │ │ │ │ ├── SingleSelectableRecyclerViewFragment.kt │ │ │ │ │ └── SingleSelectableAdapter.kt │ │ │ │ ├── diffutiladapter │ │ │ │ │ ├── MyDiffCallback.kt │ │ │ │ │ ├── MyDiffUtilAdapter.kt │ │ │ │ │ └── DiffUtilRecyclerViewFragment.kt │ │ │ │ └── concatadapter │ │ │ │ │ ├── HorizontalItemAdapter.kt │ │ │ │ │ ├── HorizontalFeedAdapter.kt │ │ │ │ │ └── ConcatExampleActivity.kt │ │ │ │ ├── compose │ │ │ │ ├── layout │ │ │ │ │ ├── ui │ │ │ │ │ │ └── theme │ │ │ │ │ │ │ ├── Color.kt │ │ │ │ │ │ │ ├── Shape.kt │ │ │ │ │ │ │ ├── Type.kt │ │ │ │ │ │ │ └── Theme.kt │ │ │ │ │ └── LayoutComposeActivity.kt │ │ │ │ ├── SampleData.kt │ │ │ │ └── ComposePlaygroundActivity.kt │ │ │ │ ├── flow │ │ │ │ ├── FlowFragment.kt │ │ │ │ └── FlowViewModel.kt │ │ │ │ ├── customshadow │ │ │ │ └── CustomShadowActivity.kt │ │ │ │ ├── test │ │ │ │ └── ExtensionTestFragment.kt │ │ │ │ ├── Menu.kt │ │ │ │ ├── MenuAdapter.kt │ │ │ │ ├── onactivityresultapi │ │ │ │ └── ChooseFromGalleryActivity.kt │ │ │ │ ├── PowerManager.java │ │ │ │ ├── MainActivity.kt │ │ │ │ ├── InputManager.java │ │ │ │ ├── remindmethere │ │ │ │ ├── GeofenceHelper.kt │ │ │ │ ├── GeofenceBroadcastReceiver.kt │ │ │ │ ├── NotificationHelper.kt │ │ │ │ ├── GeofenceForegroundService.kt │ │ │ │ └── MapsActivity.kt │ │ │ │ ├── MenuFragment.kt │ │ │ │ └── ViewExtDemoActivity.kt │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── mobven │ │ │ └── extensions │ │ │ └── ExampleUnitTest.kt │ └── androidTest │ │ └── java │ │ └── com │ │ └── mobven │ │ └── extensions │ │ └── ExampleInstrumentedTest.kt ├── proguard-rules.pro └── build.gradle ├── CODEOWNERS ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .idea ├── sonarlint │ └── issuestore │ │ └── index.pb ├── .gitignore └── codeStyles │ └── codeStyleConfig.xml ├── LICENSE ├── gradle.properties ├── gradlew.bat ├── README.md ├── .gitignore └── gradlew /extension/consumer-rules.pro: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | /release -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @abalta-mobven 2 | -------------------------------------------------------------------------------- /extension/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | /release -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':extension' 2 | include ':app' 3 | rootProject.name = "MobvenExtensions" -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 8dp 3 | 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobven/Extensify/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /.idea/sonarlint/issuestore/index.pb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobven/Extensify/HEAD/.idea/sonarlint/issuestore/index.pb -------------------------------------------------------------------------------- /extension/src/main/java/com/mobven/extension/Int.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extension 2 | 3 | fun Int?.orZero(): Int = this ?: 0 -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | /jarRepositories.xml 5 | /kotlinScripting.xml 6 | 7 | -------------------------------------------------------------------------------- /extension/src/main/java/com/mobven/extension/Long.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extension 2 | 3 | fun Long?.orZero(): Long = this ?: 0L 4 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobven/Extensify/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobven/Extensify/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobven/Extensify/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /extension/src/main/java/com/mobven/extension/Boolean.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extension 2 | 3 | fun Boolean?.orFalse(): Boolean = this ?: false -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobven/Extensify/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobven/Extensify/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobven/Extensify/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobven/Extensify/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobven/Extensify/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobven/Extensify/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mobven/Extensify/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /extension/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /.idea/codeStyles/codeStyleConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /extension/src/main/java/com/mobven/extension/Constants.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extension 2 | 3 | object Constants { 4 | const val MIME_TYPE_IMAGE = "image/*" 5 | const val MIME_TYPE_VIDEO = "video/*" 6 | } -------------------------------------------------------------------------------- /app/src/main/res/values/google_maps_api.xml: -------------------------------------------------------------------------------- 1 | 2 | AIzaSyB_RBtfO3jF9N6tfRLlULEat4soyLEKF94 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/java/com/mobven/extensions/recyclerview/singleselectable/SelectableModel.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extensions.recyclerview.singleselectable 2 | 3 | data class SelectableModel( 4 | var title: String, 5 | var isSelected: Boolean = false 6 | ) 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Apr 21 12:49:56 EET 2021 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/java/com/mobven/extensions/compose/layout/ui/theme/Color.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extensions.compose.layout.ui.theme 2 | 3 | import androidx.compose.ui.graphics.Color 4 | 5 | val Purple200 = Color(0xFFBB86FC) 6 | val Purple500 = Color(0xFF6200EE) 7 | val Purple700 = Color(0xFF3700B3) 8 | val Teal200 = Color(0xFF03DAC5) -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_flow.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_text.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_geofence.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /extension/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | -------------------------------------------------------------------------------- /app/src/main/java/com/mobven/extensions/compose/layout/ui/theme/Shape.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extensions.compose.layout.ui.theme 2 | 3 | import androidx.compose.foundation.shape.RoundedCornerShape 4 | import androidx.compose.material.Shapes 5 | import androidx.compose.ui.unit.dp 6 | 7 | val Shapes = Shapes( 8 | small = RoundedCornerShape(4.dp), 9 | medium = RoundedCornerShape(4.dp), 10 | large = RoundedCornerShape(0.dp) 11 | ) -------------------------------------------------------------------------------- /app/src/main/res/values-v23/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | -------------------------------------------------------------------------------- /extension/src/main/java/com/mobven/extension/Date.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extension 2 | 3 | import java.text.SimpleDateFormat 4 | import java.util.* 5 | 6 | /** 7 | * Extension method that converts date for given format 8 | */ 9 | fun Date.formatToViewTime(customFormat: String = "dd MMMM yyyy"): String { 10 | val sdf = SimpleDateFormat(customFormat, Locale.getDefault()) 11 | Calendar.getInstance().time 12 | return sdf.format(this) 13 | } -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_baseline_check.xml: -------------------------------------------------------------------------------- 1 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/java/com/mobven/extensions/flow/FlowFragment.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extensions.flow 2 | 3 | import android.os.Bundle 4 | import androidx.fragment.app.Fragment 5 | import androidx.fragment.app.viewModels 6 | 7 | class FlowFragment: Fragment() { 8 | private val viewModel by viewModels() 9 | 10 | override fun onCreate(savedInstanceState: Bundle?) { 11 | super.onCreate(savedInstanceState) 12 | viewModel 13 | } 14 | } -------------------------------------------------------------------------------- /app/src/test/java/com/mobven/extensions/ExampleUnitTest.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extensions 2 | 3 | import org.junit.Test 4 | 5 | import org.junit.Assert.* 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * See [testing documentation](http://d.android.com/tools/testing). 11 | */ 12 | class ExampleUnitTest { 13 | @Test 14 | fun addition_isCorrect() { 15 | assertEquals(4, 2 + 2) 16 | } 17 | } -------------------------------------------------------------------------------- /extension/src/test/java/com/mobven/extension/ExampleUnitTest.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extension 2 | 3 | import org.junit.Test 4 | 5 | import org.junit.Assert.* 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * See [testing documentation](http://d.android.com/tools/testing). 11 | */ 12 | class ExampleUnitTest { 13 | @Test 14 | fun addition_isCorrect() { 15 | assertEquals(4, 2 + 2) 16 | } 17 | } -------------------------------------------------------------------------------- /app/src/main/java/com/mobven/extensions/customshadow/CustomShadowActivity.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extensions.customshadow 2 | 3 | import androidx.appcompat.app.AppCompatActivity 4 | import android.os.Bundle 5 | import com.mobven.extensions.R 6 | 7 | class CustomShadowActivity : AppCompatActivity() { 8 | override fun onCreate(savedInstanceState: Bundle?) { 9 | super.onCreate(savedInstanceState) 10 | setContentView(R.layout.activity_custom_shadow) 11 | } 12 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_maps.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /extension/src/test/java/com/mobven/extension/StringUnitTest.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extension 2 | 3 | import org.junit.Assert 4 | import org.junit.Test 5 | 6 | class StringUnitTest { 7 | 8 | @Test 9 | fun tcknTests() { 10 | Assert.assertFalse(null.isValidTCKN()) 11 | Assert.assertFalse("".isValidTCKN()) 12 | Assert.assertFalse("234".isValidTCKN()) 13 | Assert.assertFalse("00719505186".isValidTCKN()) 14 | Assert.assertTrue("20519505186".isValidTCKN()) 15 | } 16 | } -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFBB86FC 4 | #FF6200EE 5 | #FF3700B3 6 | #FF03DAC5 7 | #FF018786 8 | #FF000000 9 | #FFFFFFFF 10 | #D81B60 11 | #9600574b 12 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /extension/src/main/java/com/mobven/extension/Lifecycle.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extension 2 | 3 | import androidx.lifecycle.LifecycleOwner 4 | import androidx.lifecycle.LiveData 5 | import androidx.lifecycle.Observer 6 | 7 | /** 8 | * Extension method for observing livedata 9 | */ 10 | fun LifecycleOwner.observe(liveData: LiveData?, observer: (T) -> Unit) { 11 | liveData?.observe(this, Observer(observer)) 12 | } 13 | 14 | /** 15 | * Extension method for observing events 16 | */ 17 | fun LifecycleOwner.eventObserve(liveData: LiveData>?, observer: (T) -> Unit) { 18 | liveData?.observe(this, EventObserver(observer)) 19 | } -------------------------------------------------------------------------------- /extension/src/main/java/com/mobven/extension/Collection.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extension 2 | 3 | /** 4 | * Moves the given item at the `oldIndex` to the `newIndex` 5 | */ 6 | fun MutableList.moveAt(oldIndex: Int, newIndex: Int) { 7 | val item = this[oldIndex] 8 | removeAt(oldIndex) 9 | if (oldIndex > newIndex) 10 | add(newIndex, item) 11 | else 12 | add(newIndex - 1, item) 13 | } 14 | 15 | /** 16 | * Moves the given **T** item to the specified index 17 | */ 18 | fun MutableList.move(item: T, newIndex: Int) { 19 | val currentIndex = indexOf(item) 20 | if (currentIndex < 0) return 21 | removeAt(currentIndex) 22 | add(newIndex, item) 23 | } -------------------------------------------------------------------------------- /extension/src/main/java/com/mobven/extension/Double.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extension 2 | 3 | import java.lang.IllegalArgumentException 4 | import java.text.NumberFormat 5 | import java.util.* 6 | 7 | /** 8 | * Return double value or zero if it is null 9 | */ 10 | fun Double?.orZero(): Double = this ?: 0.0 11 | 12 | /** 13 | * Convert double to number with given locale currency 14 | */ 15 | fun Double?.localizedNumberFormat(loc: Locale = Locale.getDefault()): String { 16 | try { 17 | val nf = NumberFormat.getCurrencyInstance(loc) 18 | if (this == 0.0) { 19 | return "0" 20 | } 21 | return nf.format(this) 22 | } catch (ex: IllegalArgumentException) { 23 | return "0" 24 | } 25 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/item_horizontal_feed.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /app/src/main/java/com/mobven/extensions/test/ExtensionTestFragment.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extensions.test 2 | 3 | import android.os.Bundle 4 | import android.view.LayoutInflater 5 | import android.view.View 6 | import android.view.ViewGroup 7 | import androidx.fragment.app.Fragment 8 | import com.mobven.extension.makeCall 9 | import com.mobven.extensions.R 10 | 11 | class ExtensionTestFragment: Fragment(R.layout.fragment_text) { 12 | 13 | override fun onCreateView( 14 | inflater: LayoutInflater, 15 | container: ViewGroup?, 16 | savedInstanceState: Bundle? 17 | ): View? { 18 | requireContext().makeCall("5542029938") 19 | return super.onCreateView(inflater, container, savedInstanceState) 20 | } 21 | 22 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_concat_example.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 14 | 15 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/mobven/extensions/ExampleInstrumentedTest.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extensions 2 | 3 | import androidx.test.platform.app.InstrumentationRegistry 4 | import androidx.test.ext.junit.runners.AndroidJUnit4 5 | 6 | import org.junit.Test 7 | import org.junit.runner.RunWith 8 | 9 | import org.junit.Assert.* 10 | 11 | /** 12 | * Instrumented test, which will execute on an Android device. 13 | * 14 | * See [testing documentation](http://d.android.com/tools/testing). 15 | */ 16 | @RunWith(AndroidJUnit4::class) 17 | class ExampleInstrumentedTest { 18 | @Test 19 | fun useAppContext() { 20 | // Context of the app under test. 21 | val appContext = InstrumentationRegistry.getInstrumentation().targetContext 22 | assertEquals("com.mobven.extensions", appContext.packageName) 23 | } 24 | } -------------------------------------------------------------------------------- /extension/src/androidTest/java/com/mobven/extension/ExampleInstrumentedTest.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extension 2 | 3 | import androidx.test.platform.app.InstrumentationRegistry 4 | import androidx.test.ext.junit.runners.AndroidJUnit4 5 | 6 | import org.junit.Test 7 | import org.junit.runner.RunWith 8 | 9 | import org.junit.Assert.* 10 | 11 | /** 12 | * Instrumented test, which will execute on an Android device. 13 | * 14 | * See [testing documentation](http://d.android.com/tools/testing). 15 | */ 16 | @RunWith(AndroidJUnit4::class) 17 | class ExampleInstrumentedTest { 18 | @Test 19 | fun useAppContext() { 20 | // Context of the app under test. 21 | val appContext = InstrumentationRegistry.getInstrumentation().targetContext 22 | assertEquals("com.mobven.extension.test", appContext.packageName) 23 | } 24 | } -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile -------------------------------------------------------------------------------- /extension/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile -------------------------------------------------------------------------------- /app/src/main/res/layout/dialog_full_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 16 | 17 | -------------------------------------------------------------------------------- /app/src/main/res/layout/item_menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 19 | -------------------------------------------------------------------------------- /app/src/main/res/values-night/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | -------------------------------------------------------------------------------- /app/src/main/java/com/mobven/extensions/Menu.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extensions; 2 | 3 | import androidx.annotation.StringDef 4 | import com.mobven.extensions.Menu.Companion.SINGLE_SELECT_LIST 5 | import com.mobven.extensions.Menu.Companion.VIEW_EXT 6 | 7 | @StringDef(SINGLE_SELECT_LIST, VIEW_EXT) 8 | annotation class Menu { 9 | companion object { 10 | const val SINGLE_SELECT_LIST = "Single Selectable RecyclerView" 11 | const val VIEW_EXT = "View Ext." 12 | const val REQUEST_PERMISSIONS = "Request Permissions" 13 | const val COMPOSE_PLAYGROUND = "Compose Playground" 14 | const val LAYOUT_COMPOSE = "Compose Layout" 15 | const val CONCAT_ADAPTER = "Concat Adapter" 16 | const val DIFF_UTIL_LIST = "Diff Util RecyclerView" 17 | const val GEOFENCE = "Geofence" 18 | const val CUSTOM_SHADOW = "Custom Shadow" 19 | const val FLOW_EXAMPLE = "Flow Examples" 20 | } 21 | } -------------------------------------------------------------------------------- /app/src/main/java/com/mobven/extensions/compose/layout/ui/theme/Type.kt: -------------------------------------------------------------------------------- 1 | package com.mobven.extensions.compose.layout.ui.theme 2 | 3 | import androidx.compose.material.Typography 4 | import androidx.compose.ui.text.TextStyle 5 | import androidx.compose.ui.text.font.FontFamily 6 | import androidx.compose.ui.text.font.FontWeight 7 | import androidx.compose.ui.unit.sp 8 | 9 | // Set of Material typography styles to start with 10 | val Typography = Typography( 11 | body1 = TextStyle( 12 | fontFamily = FontFamily.Default, 13 | fontWeight = FontWeight.Normal, 14 | fontSize = 16.sp 15 | ) 16 | /* Other default text styles to override 17 | button = TextStyle( 18 | fontFamily = FontFamily.Default, 19 | fontWeight = FontWeight.W500, 20 | fontSize = 14.sp 21 | ), 22 | caption = TextStyle( 23 | fontFamily = FontFamily.Default, 24 | fontWeight = FontWeight.Normal, 25 | fontSize = 12.sp 26 | ) 27 | */ 28 | ) -------------------------------------------------------------------------------- /app/src/main/res/layout/custom_dialog.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 13 | 14 | 19 | 20 | 24 | 25 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_single_selectable_rv.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 16 | 17 |