Skip to content

Commit fa049e9

Browse files
author
Kosh
committed
rename package
1 parent 8f7bc77 commit fa049e9

File tree

158 files changed

+1273
-1233
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+1273
-1233
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
21
# Compose EasyForms
32
Focus on building your form UI while the library do the heavy work for you.
43

4+
## Features
5+
56
### Out of the box EasyForms support below Compose widgets:
67
- TextField
78
- Checkbox
@@ -21,6 +22,8 @@ Focus on building your form UI while the library do the heavy work for you.
2122
- Cards validation
2223
- Your own custom validator
2324

25+
## Example
26+
2427
### How to use:
2528

2629
Define `val easyForms = EasyForms()` in your ViewModel or in your Activity/Fragment upper in UI tree to prevent reinitializing the object.

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.fastaccess.compose.easyforms.example">
3+
package="com.github.k0shk0sh.compose.easyforms.example">
44

55
<application
66
android:allowBackup="false"

app/src/main/java/com/fastaccess/compose/easyforms/example/MainViewModel.kt renamed to app/src/main/java/com/github/k0shk0sh/compose/easyforms/example/MainViewModel.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
package com.fastaccess.compose.easyforms.example
1+
package com.github.k0shk0sh.compose.easyforms.example
22

33
import androidx.lifecycle.ViewModel
4-
import com.fastaccess.compose.easyforms.EasyForms
5-
import com.fastaccess.compose.easyforms.EasyFormsResult
6-
import com.fastaccess.compose.easyforms.example.custom_states.MyEasyFormsCustomCheckboxListResult
7-
import com.fastaccess.compose.easyforms.example.custom_states.MyEasyFormsCustomStringResult
8-
import com.fastaccess.compose.easyforms.example.custom_states.MyFormKeys
4+
import com.github.k0shk0sh.compose.easyforms.EasyForms
5+
import com.github.k0shk0sh.compose.easyforms.EasyFormsResult
6+
import com.github.k0shk0sh.compose.easyforms.example.custom_states.MyEasyFormsCustomCheckboxListResult
7+
import com.github.k0shk0sh.compose.easyforms.example.custom_states.MyEasyFormsCustomStringResult
8+
import com.github.k0shk0sh.compose.easyforms.example.custom_states.MyFormKeys
99

1010
class MainViewModel : ViewModel() {
1111
val easyForms = EasyForms()

app/src/main/java/com/fastaccess/compose/easyforms/example/custom_states/MyEasyFormsCheckboxListState.kt renamed to app/src/main/java/com/github/k0shk0sh/compose/easyforms/example/custom_states/MyEasyFormsCheckboxListState.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
package com.fastaccess.compose.easyforms.example.custom_states
1+
package com.github.k0shk0sh.compose.easyforms.example.custom_states
22

33
import androidx.compose.runtime.Composable
44
import androidx.compose.runtime.mutableStateListOf
55
import androidx.compose.runtime.saveable.listSaver
66
import androidx.compose.runtime.saveable.rememberSaveable
77
import androidx.compose.runtime.snapshots.SnapshotStateList
88
import androidx.compose.runtime.toMutableStateList
9-
import com.fastaccess.compose.easyforms.EasyFormsErrorState
10-
import com.fastaccess.compose.easyforms.EasyFormsResult
11-
import com.fastaccess.compose.easyforms.EasyFormsState
12-
import com.fastaccess.compose.easyforms.example.model.CheckboxModel
9+
import com.github.k0shk0sh.compose.easyforms.EasyFormsErrorState
10+
import com.github.k0shk0sh.compose.easyforms.EasyFormsResult
11+
import com.github.k0shk0sh.compose.easyforms.EasyFormsState
12+
import com.github.k0shk0sh.compose.easyforms.example.model.CheckboxModel
1313

1414
class MyEasyFormsCheckboxListState(
1515
list: List<CheckboxModel>,

app/src/main/java/com/fastaccess/compose/easyforms/example/custom_states/MyEasyFormsCustomStringState.kt renamed to app/src/main/java/com/github/k0shk0sh/compose/easyforms/example/custom_states/MyEasyFormsCustomStringState.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package com.fastaccess.compose.easyforms.example.custom_states
1+
package com.github.k0shk0sh.compose.easyforms.example.custom_states
22

33
import androidx.compose.runtime.*
4-
import com.fastaccess.compose.easyforms.EasyFormsErrorState
5-
import com.fastaccess.compose.easyforms.EasyFormsResult
6-
import com.fastaccess.compose.easyforms.EasyFormsState
4+
import com.github.k0shk0sh.compose.easyforms.EasyFormsErrorState
5+
import com.github.k0shk0sh.compose.easyforms.EasyFormsResult
6+
import com.github.k0shk0sh.compose.easyforms.EasyFormsState
77

88
class MyEasyFormsCustomStringState(
99
defaultValue: String = "",

app/src/main/java/com/fastaccess/compose/easyforms/example/custom_states/MyFormKeys.kt renamed to app/src/main/java/com/github/k0shk0sh/compose/easyforms/example/custom_states/MyFormKeys.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.fastaccess.compose.easyforms.example.custom_states
1+
package com.github.k0shk0sh.compose.easyforms.example.custom_states
22

33
enum class MyFormKeys {
44
EMAIL, PASSWORD, SALUTATION, NAME, URL,

app/src/main/java/com/fastaccess/compose/easyforms/example/model/CheckboxModel.kt renamed to app/src/main/java/com/github/k0shk0sh/compose/easyforms/example/model/CheckboxModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.fastaccess.compose.easyforms.example.model
1+
package com.github.k0shk0sh.compose.easyforms.example.model
22

33
import android.os.Parcelable
44
import kotlinx.parcelize.Parcelize

app/src/main/java/com/fastaccess/compose/easyforms/example/ui/MainActivity.kt renamed to app/src/main/java/com/github/k0shk0sh/compose/easyforms/example/ui/MainActivity.kt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.fastaccess.compose.easyforms.example.ui
1+
package com.github.k0shk0sh.compose.easyforms.example.ui
22

33
import android.os.Bundle
44
import androidx.activity.ComponentActivity
@@ -13,11 +13,14 @@ import androidx.compose.runtime.saveable.rememberSaveable
1313
import androidx.compose.ui.Modifier
1414
import androidx.compose.ui.tooling.preview.Preview
1515
import androidx.compose.ui.unit.dp
16-
import com.fastaccess.compose.easyforms.*
17-
import com.fastaccess.compose.easyforms.example.MainViewModel
18-
import com.fastaccess.compose.easyforms.example.model.listOfCheckboxes
19-
import com.fastaccess.compose.easyforms.example.ui.components.*
20-
import com.fastaccess.compose.easyforms.example.ui.theme.ComposeFormsValidationTheme
16+
import com.github.compose.easyforms.*
17+
import com.github.k0shk0sh.compose.easyforms.example.MainViewModel
18+
import com.github.k0shk0sh.compose.easyforms.example.model.listOfCheckboxes
19+
import com.github.compose.easyforms.example.ui.components.*
20+
import com.github.k0shk0sh.compose.easyforms.example.ui.theme.ComposeFormsValidationTheme
21+
import com.github.k0shk0sh.compose.easyforms.EasyForms
22+
import com.github.k0shk0sh.compose.easyforms.EasyFormsErrorState
23+
import com.github.k0shk0sh.compose.easyforms.example.ui.components.*
2124

2225
class MainActivity : ComponentActivity() {
2326

app/src/main/java/com/fastaccess/compose/easyforms/example/ui/components/Dropdown.kt renamed to app/src/main/java/com/github/k0shk0sh/compose/easyforms/example/ui/components/Dropdown.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.fastaccess.compose.easyforms.example.ui.components
1+
package com.github.k0shk0sh.compose.easyforms.example.ui.components
22

33
import androidx.compose.foundation.clickable
44
import androidx.compose.foundation.layout.*
@@ -10,9 +10,9 @@ import androidx.compose.runtime.Composable
1010
import androidx.compose.ui.Modifier
1111
import androidx.compose.ui.draw.alpha
1212
import androidx.compose.ui.unit.dp
13-
import com.fastaccess.compose.easyforms.EasyForms
14-
import com.fastaccess.compose.easyforms.example.custom_states.MyEasyFormsCustomStringState
15-
import com.fastaccess.compose.easyforms.example.custom_states.MyFormKeys
13+
import com.github.k0shk0sh.compose.easyforms.EasyForms
14+
import com.github.k0shk0sh.compose.easyforms.example.custom_states.MyEasyFormsCustomStringState
15+
import com.github.k0shk0sh.compose.easyforms.example.custom_states.MyFormKeys
1616

1717
@Composable
1818
fun Salutation(

app/src/main/java/com/fastaccess/compose/easyforms/example/ui/components/Misc.kt renamed to app/src/main/java/com/github/k0shk0sh/compose/easyforms/example/ui/components/Misc.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.fastaccess.compose.easyforms.example.ui.components
1+
package com.github.k0shk0sh.compose.easyforms.example.ui.components
22

33
import androidx.compose.foundation.layout.Spacer
44
import androidx.compose.foundation.layout.padding

0 commit comments

Comments
 (0)