Skip to content

Commit d496530

Browse files
committed
Initial commit: Add Compose Reorderable project
1 parent f9914ee commit d496530

31 files changed

Lines changed: 76 additions & 68 deletions

File tree

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.kotlin/sessions/kotlin-compiler-13203005180294477120.salive

Whitespace-only changes.

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
android {
9-
namespace = "com.example.composereorderable"
9+
namespace = "com.codergalib2005.composereorderable"
1010
compileSdk {
1111
version = release(36)
1212
}

app/src/androidTest/java/com/example/composereorderable/ExampleInstrumentedTest.kt renamed to app/src/androidTest/java/com/codergalib2005/composereorderable/ExampleInstrumentedTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.composereorderable
1+
package com.codergalib2005.composereorderable
22

33
import androidx.test.platform.app.InstrumentationRegistry
44
import androidx.test.ext.junit.runners.AndroidJUnit4

app/src/main/java/com/example/composereorderable/AppRoot.kt renamed to app/src/main/java/com/codergalib2005/composereorderable/AppRoot.kt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
package com.example.composereorderable
1+
package com.codergalib2005.composereorderable
22

33
import androidx.compose.foundation.layout.padding
44
import androidx.compose.material.icons.Icons
55
import androidx.compose.material.icons.automirrored.filled.List
6-
import androidx.compose.material.icons.filled.List
76
import androidx.compose.material.icons.filled.Settings
87
import androidx.compose.material.icons.filled.Star
98
import androidx.compose.material3.ExperimentalMaterial3Api
@@ -25,10 +24,10 @@ import androidx.navigation.compose.NavHost
2524
import androidx.navigation.compose.composable
2625
import androidx.navigation.compose.currentBackStackEntryAsState
2726
import androidx.navigation.compose.rememberNavController
28-
import com.example.composereorderable.reorderlist.ReorderGrid
29-
import com.example.composereorderable.reorderlist.ReorderImageList
30-
import com.example.composereorderable.reorderlist.ReorderList
31-
import com.example.composereorderable.ui.theme.ComposeReOrderableTheme
27+
import com.codergalib2005.composereorderable.reorderlist.ReorderGrid
28+
import com.codergalib2005.composereorderable.reorderlist.ReorderImageList
29+
import com.codergalib2005.composereorderable.reorderlist.ReorderList
30+
import com.codergalib2005.composereorderable.ui.theme.ComposeReOrderableTheme
3231
import kotlinx.serialization.Serializable
3332

3433
@OptIn(ExperimentalMaterial3Api::class)

app/src/main/java/com/example/composereorderable/MainActivity.kt renamed to app/src/main/java/com/codergalib2005/composereorderable/MainActivity.kt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
package com.example.composereorderable
1+
package com.codergalib2005.composereorderable
22

33
import android.os.Bundle
44
import androidx.activity.ComponentActivity
55
import androidx.activity.compose.setContent
66
import androidx.activity.enableEdgeToEdge
7-
import androidx.compose.foundation.layout.fillMaxSize
8-
import androidx.compose.foundation.layout.padding
9-
import androidx.compose.material3.Scaffold
10-
import androidx.compose.material3.Text
11-
import androidx.compose.runtime.Composable
12-
import androidx.compose.ui.Modifier
13-
import androidx.compose.ui.tooling.preview.Preview
14-
import com.example.composereorderable.ui.theme.ComposeReOrderableTheme
7+
import com.codergalib2005.composereorderable.ui.theme.ComposeReOrderableTheme
158

169
class MainActivity : ComponentActivity() {
1710
override fun onCreate(savedInstanceState: Bundle?) {

app/src/main/java/com/example/composereorderable/reorderlist/ImageListViewModel.kt renamed to app/src/main/java/com/codergalib2005/composereorderable/reorderlist/ImageListViewModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
package com.example.composereorderable.reorderlist
1+
package com.codergalib2005.composereorderable.reorderlist
22

33

44
import androidx.compose.runtime.getValue
55
import androidx.compose.runtime.mutableStateOf
66
import androidx.compose.runtime.setValue
77
import androidx.lifecycle.ViewModel
8-
import com.example.reorderable.ItemPosition
8+
import com.codergalib2005.reorderable.ItemPosition
99
import kotlin.random.Random
1010

1111

app/src/main/java/com/example/composereorderable/reorderlist/ItemData.kt renamed to app/src/main/java/com/codergalib2005/composereorderable/reorderlist/ItemData.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
package com.example.composereorderable.reorderlist
1+
package com.codergalib2005.composereorderable.reorderlist
22

33
data class ItemData(val title: String, val key: String, val isLocked: Boolean = false)

0 commit comments

Comments
 (0)