[
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.md",
    "content": "---\nname: Bug report\nabout: Create a report to help us improve\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n**Describe the bug**\nA clear and concise description of what the bug is.\n\n**To Reproduce**\nSteps to reproduce the behavior:\n1. Go to '...'\n2. Click on '....'\n3. Scroll down to '....'\n4. See error\n\n**Expected behavior**\nA clear and concise description of what you expected to happen.\n\n**Screenshots**\nIf applicable, add screenshots to help explain your problem.\n\n**Desktop (please complete the following information):**\n - OS: [e.g. iOS]\n - Browser [e.g. chrome, safari]\n - Version [e.g. 22]\n\n**Smartphone (please complete the following information):**\n - Device: [e.g. iPhone6]\n - OS: [e.g. iOS8.1]\n - Browser [e.g. stock browser, safari]\n - Version [e.g. 22]\n\n**BeeTablesCompose Library Version**\n  - Library version: [1.0.0]\n\n**Additional context**\nAdd any other context about the problem here.\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature_request.md",
    "content": "---\nname: Feature request\nabout: Suggest an idea for this project\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n**Is your feature request related to a problem? Please describe.**\nA clear and concise description of what the problem is. Ex. I'm always frustrated when [...]\n\n**Describe the solution you'd like**\nA clear and concise description of what you want to happen.\n\n**Describe alternatives you've considered**\nA clear and concise description of any alternative solutions or features you've considered.\n\n**Additional context**\nAdd any other context or screenshots about the feature request here.\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/pull_request_template.md",
    "content": "### 🎯 Goal\nDescribe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.\n\n### 🛠 Implementation details\nDescribe the implementation details for this Pull Request.\n\n### ✍️ Explain examples\nExplain examples with code for this updates.\n\n### 🔠 Naming pull requests\n1. If its a new feature: [feature/*]\n2. If its a bug fix: [bugFix/*]\n3. If its a documentation update: [documentation/*]\n\n### Preparing a pull request for review\n1. Before pushing your changes makes sure to run **\"./gradlew spotlessCheck\"** and **\"./gradlewSpotlessApply\"**. If there are any linting issues please fix them before creating a pull request. \n2. Your pull request must pass the CI workflow before request a review to any of the maintainers, if not fix the issue first:\n3. 🚨Always make a pull request against the develop branch.\n4. Always have descriptive commit messages explaining what you did.\n5. Always have a description for your pull request to explain what you did in depth, it will be great if you include video recording or screenshots if possible.\n6. If you need help with the above please feel to reach out to me and I will help you out.\n\n## Code reviews\nAll submissions, including submissions by project members, require review. We use GitHub pull requests for this purpose. Consult [GitHub Help](https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests) for more information on using pull requests.\n"
  },
  {
    "path": ".github/workflows/android.yml",
    "content": "name: Android CI\n\non:\n  push:\n    branches: [ master ]\n  pull_request:\n    branches: [ '*' ]\n\njobs:\n  lint:\n    name: Spotless check\n    runs-on: ubuntu-latest\n    steps:\n      - name: Check out code\n        uses: actions/checkout@v3.1.0\n      - name: Set up JDK\n        uses: actions/setup-java@v3.5.1\n        with:\n          distribution: 'zulu'\n          java-version: 17\n      - name: spotless\n        run: ./gradlew spotlessCheck\n\n  build:\n    name: Build and Tests\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3.1.0\n\n      - name: set up JDK\n        uses: actions/setup-java@v3.5.1\n        with:\n          distribution: 'zulu'\n          java-version: 17\n\n      - name: Cache Gradle and wrapper\n        uses: actions/cache@v2\n        with:\n          path: |\n            ~/.gradle/caches\n            ~/.gradle/wrapper\n          key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}\n          restore-keys: |\n            ${{ runner.os }}-gradle-\n\n      - name: Make Gradle executable\n        run: chmod +x ./gradlew\n\n      - name: Build with Gradle\n        run: ./gradlew --scan --stacktrace\n\n      - name: Run unit tests\n        run: |\n          ./gradlew --scan --stacktrace \\\n              testDebugUnitTest"
  },
  {
    "path": ".gitignore",
    "content": "*.iml\n.gradle\n/local.properties\n/.idea/caches\n/.idea/libraries\n/.idea/modules.xml\n/.idea/workspace.xml\n/.idea/navEditor.xml\n/.idea/assetWizardSettings.xml\n.DS_Store\n/build\n/captures\n.externalNativeBuild\n.cxx\nlocal.properties\n.idea"
  },
  {
    "path": "BeeTablesCompose/.gitignore",
    "content": "/build"
  },
  {
    "path": "BeeTablesCompose/build.gradle.kts",
    "content": "/*\n * Copyright 2023 Breens Mbaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nplugins {\n    id(\"com.android.library\")\n    id(\"org.jetbrains.kotlin.android\")\n    id(\"maven-publish\")\n    id(\"org.jetbrains.kotlin.plugin.compose\")\n}\n\nandroid {\n    namespace = \"com.breens.beetablescompose\"\n    compileSdk = 33\n\n    defaultConfig {\n        minSdk = 21\n\n        testInstrumentationRunner = \"androidx.test.runner.AndroidJUnitRunner\"\n        consumerProguardFiles(\"consumer-rules.pro\")\n    }\n\n    buildTypes {\n        release {\n            isMinifyEnabled = false\n            proguardFiles(\n                getDefaultProguardFile(\"proguard-android-optimize.txt\"),\n                \"proguard-rules.pro\",\n            )\n        }\n    }\n    compileOptions {\n        sourceCompatibility = JavaVersion.VERSION_1_8\n        targetCompatibility = JavaVersion.VERSION_1_8\n    }\n    kotlinOptions {\n        jvmTarget = \"1.8\"\n    }\n    packaging {\n        resources {\n            excludes += \"/META-INF/{AL2.0,LGPL2.1}\"\n        }\n    }\n    buildFeatures {\n        compose = true\n    }\n}\n\ndependencies {\n\n    implementation(\"androidx.core:core-ktx:1.9.0\")\n    implementation(\"androidx.appcompat:appcompat:1.6.1\")\n    implementation(platform(\"androidx.compose:compose-bom:2023.03.00\"))\n    implementation(\"androidx.compose.ui:ui\")\n    implementation(\"androidx.compose.ui:ui-graphics\")\n    implementation(\"androidx.compose.ui:ui-tooling-preview\")\n    implementation(\"androidx.compose.material3:material3\")\n    testImplementation(\"junit:junit:4.13.2\")\n    androidTestImplementation(\"androidx.test.ext:junit:1.1.5\")\n    androidTestImplementation(\"androidx.test.espresso:espresso-core:3.5.1\")\n    androidTestImplementation(platform(\"androidx.compose:compose-bom:2023.03.00\"))\n    androidTestImplementation(\"androidx.compose.ui:ui-test-junit4\")\n    debugImplementation(\"androidx.compose.ui:ui-tooling\")\n    debugImplementation(\"androidx.compose.ui:ui-test-manifest\")\n    implementation(kotlin(\"reflect\"))\n}\n\nafterEvaluate {\n    publishing {\n        publications {\n            create<MavenPublication>(\"release\") {\n                from(components[\"release\"])\n                groupId = \"com.breens.beetablescompose\"\n                artifactId = \"bee-tables-compose\"\n                version = \"1.0.2\"\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "BeeTablesCompose/consumer-rules.pro",
    "content": ""
  },
  {
    "path": "BeeTablesCompose/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguardFiles setting in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n\n# Uncomment this to preserve the line number information for\n# debugging stack traces.\n#-keepattributes SourceFile,LineNumberTable\n\n# If you keep the line number information, uncomment this to\n# hide the original source file name.\n#-renamesourcefileattribute SourceFile"
  },
  {
    "path": "BeeTablesCompose/src/androidTest/java/com/breens/beetablescompose/ExampleInstrumentedTest.kt",
    "content": "/*\n * Copyright 2023 Breens Mbaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage com.breens.beetablescompose\n\nimport androidx.test.ext.junit.runners.AndroidJUnit4\nimport androidx.test.platform.app.InstrumentationRegistry\nimport org.junit.Assert.assertEquals\nimport org.junit.Test\nimport org.junit.runner.RunWith\n\n/**\n * Instrumented test, which will execute on an Android device.\n *\n * See [testing documentation](http://d.android.com/tools/testing).\n */\n@RunWith(AndroidJUnit4::class)\nclass ExampleInstrumentedTest {\n    @Test\n    fun useAppContext() {\n        // Context of the app under test.\n        val appContext = InstrumentationRegistry.getInstrumentation().targetContext\n        assertEquals(\"com.breens.beetablescompose.test\", appContext.packageName)\n    }\n}\n"
  },
  {
    "path": "BeeTablesCompose/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\">\n\n</manifest>"
  },
  {
    "path": "BeeTablesCompose/src/main/java/com/breens/beetablescompose/BeeTablesCompose.kt",
    "content": "/*\n * Copyright 2023 Breens Mbaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage com.breens.beetablescompose\n\nimport androidx.compose.foundation.BorderStroke\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.shape.RoundedCornerShape\nimport androidx.compose.material3.CardDefaults\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.OutlinedCard\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.text.TextStyle\nimport androidx.compose.ui.text.style.TextAlign\nimport androidx.compose.ui.unit.Dp\nimport androidx.compose.ui.unit.dp\nimport com.breens.beetablescompose.components.TableHeaderComponent\nimport com.breens.beetablescompose.components.TableHeaderComponentWithoutColumnDividers\nimport com.breens.beetablescompose.components.TableRowComponent\nimport com.breens.beetablescompose.components.TableRowComponentWithoutDividers\nimport com.breens.beetablescompose.utils.extractMembers\nimport com.breens.beetablescompose.utils.lightColor\nimport com.breens.beetablescompose.utils.lightGray\n\n/**\n * 🐝 A Compose UI data table library.\n *\n * @param data The list of data items to display in the table.\n * @param enableTableHeaderTitles show or hide the table header titles. If not set, by default the table header titles will be shown.\n * @param headerTableTitles The list of header titles to display at the top of the table.\n * @param headerTitlesBorderColor The color of the border for the header titles, by default it will be [Color.LightGray].\n * @param headerTitlesBorderWidth The width of the border for the header titles in DP, by default it will be \"0.4.dp\".\n * @param headerTitlesTextStyle The text style to apply to the header titles, by default it will be [MaterialTheme.typography.bodySmall].\n * @param headerTitlesBackGroundColor The background color for the header titles, by default it will be [Color.White].\n * @param tableRowColors The list of background colors to alternate between rows in the table, by default it will be a list of: [Color.White], [Color.White].\n * @param rowBorderColor The color of the border for the table rows, by default it will be [Color.LightGray].\n * @param rowBorderWidth The width of the border for the table rows in DP, by default it will be \"0.4.dp\".\n * @param rowTextStyle The text style to apply to the data cells in the table rows, by default it will be [MaterialTheme.typography.bodySmall].\n * @param tableElevation The elevation of the entire table (Card elevation) in DP, by default it will be \"6.dp\".\n * @param shape The shape of the table's corners, by default it will be \"RoundedCornerShape(4.dp)\".\n * @param disableVerticalDividers show or hide the vertical dividers between the table cells. If not set, by default the vertical dividers will be shown.\n * @param horizontalDividerThickness The thickness of the horizontal dividers in DP, by default it will be \"1.dp\". Note: This will only be visible if [disableVerticalDividers] is set to true.\n * @param horizontalDividerColor The color of the horizontal dividers, by default it will be [Color.LightGray]. Note: This will only be visible if [disableVerticalDividers] is set to true.\n * @param contentAlignment The alignment of the content in the table cells, by default it will be [Alignment.Center].\n * @param textAlign The alignment of the text in the table cells, by default it will be [TextAlign.Center].\n */\n@Composable\ninline fun <reified T : Any> BeeTablesCompose(\n    data: List<T>,\n    enableTableHeaderTitles: Boolean = true,\n    headerTableTitles: List<String>,\n    headerTitlesBorderColor: Color = lightGray(),\n    headerTitlesTextStyle: TextStyle = MaterialTheme.typography.bodySmall,\n    headerTitlesBackGroundColor: Color = lightColor(),\n    tableRowColors: List<Color> = listOf(\n        lightColor(),\n        lightColor(),\n    ),\n    rowBorderColor: Color = lightGray(),\n    rowTextStyle: TextStyle = MaterialTheme.typography.bodySmall,\n    tableElevation: Dp = 0.dp,\n    shape: RoundedCornerShape = RoundedCornerShape(4.dp),\n    borderStroke: BorderStroke = BorderStroke(\n        width = 1.dp,\n        color = lightGray(),\n    ),\n    disableVerticalDividers: Boolean = false,\n    dividerThickness: Dp = 1.dp,\n    horizontalDividerColor: Color = lightGray(),\n    contentAlignment: Alignment = Alignment.Center,\n    textAlign: TextAlign = TextAlign.Center,\n    tablePadding: Dp = 0.dp,\n    columnToIndexIncreaseWidth: Int? = null,\n) {\n    OutlinedCard(\n        elevation = CardDefaults.cardElevation(defaultElevation = tableElevation),\n        shape = shape,\n        border = borderStroke,\n    ) {\n        Column {\n            if (enableTableHeaderTitles) {\n                if (disableVerticalDividers) {\n                    TableHeaderComponentWithoutColumnDividers(\n                        headerTableTitles = headerTableTitles,\n                        headerTitlesTextStyle = headerTitlesTextStyle,\n                        headerTitlesBackGroundColor = headerTitlesBackGroundColor,\n                        dividerThickness = dividerThickness,\n                        contentAlignment = contentAlignment,\n                        textAlign = textAlign,\n                        tablePadding = tablePadding,\n                        columnToIndexIncreaseWidth = columnToIndexIncreaseWidth,\n                    )\n                } else {\n                    TableHeaderComponent(\n                        headerTableTitles = headerTableTitles,\n                        headerTitlesBorderColor = headerTitlesBorderColor,\n                        headerTitlesTextStyle = headerTitlesTextStyle,\n                        headerTitlesBackGroundColor = headerTitlesBackGroundColor,\n                        contentAlignment = contentAlignment,\n                        textAlign = textAlign,\n                        tablePadding = tablePadding,\n                        dividerThickness = dividerThickness,\n                        columnToIndexIncreaseWidth = columnToIndexIncreaseWidth,\n                    )\n                }\n            }\n\n            data.forEachIndexed { index, data ->\n                val rowData = extractMembers(data).map {\n                    it.second // getting the value from the returned Pair\n                }\n\n                // alternate background colors between rows\n                val tableRowBackgroundColor = if (index % 2 == 0) {\n                    tableRowColors[0]\n                } else {\n                    tableRowColors[1]\n                }\n\n                if (disableVerticalDividers) {\n                    TableRowComponentWithoutDividers(\n                        data = rowData,\n                        rowTextStyle = rowTextStyle,\n                        rowBackGroundColor = tableRowBackgroundColor,\n                        dividerThickness = dividerThickness,\n                        horizontalDividerColor = horizontalDividerColor,\n                        contentAlignment = contentAlignment,\n                        textAlign = textAlign,\n                        tablePadding = tablePadding,\n                        columnToIndexIncreaseWidth = columnToIndexIncreaseWidth,\n                    )\n                } else {\n                    TableRowComponent(\n                        data = rowData,\n                        rowBorderColor = rowBorderColor,\n                        dividerThickness = dividerThickness,\n                        rowTextStyle = rowTextStyle,\n                        rowBackGroundColor = tableRowBackgroundColor,\n                        contentAlignment = contentAlignment,\n                        textAlign = textAlign,\n                        tablePadding = tablePadding,\n                        columnToIndexIncreaseWidth = columnToIndexIncreaseWidth,\n                    )\n                }\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "BeeTablesCompose/src/main/java/com/breens/beetablescompose/components/TableHeaderComponent.kt",
    "content": "/*\n * Copyright 2023 Breens Mbaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage com.breens.beetablescompose.components\n\nimport androidx.compose.foundation.background\nimport androidx.compose.foundation.border\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.layout.wrapContentHeight\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.text.TextStyle\nimport androidx.compose.ui.text.style.TextAlign\nimport androidx.compose.ui.text.style.TextOverflow\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.unit.Dp\nimport androidx.compose.ui.unit.dp\nimport com.breens.beetablescompose.utils.darkColor\nimport com.breens.beetablescompose.utils.lightGray\n\n@Composable\nfun TableHeaderComponent(\n    headerTableTitles: List<String>,\n    headerTitlesBorderColor: Color,\n    headerTitlesTextStyle: TextStyle,\n    headerTitlesBackGroundColor: Color,\n    contentAlignment: Alignment,\n    textAlign: TextAlign,\n    tablePadding: Dp,\n    columnToIndexIncreaseWidth: Int?,\n    dividerThickness: Dp,\n) {\n    Row(\n        Modifier\n            .fillMaxWidth()\n            .background(headerTitlesBackGroundColor)\n            .padding(horizontal = tablePadding),\n    ) {\n        headerTableTitles.forEachIndexed { index, title ->\n            val weight = if (index == columnToIndexIncreaseWidth) 8f else 2f\n            Box(\n                modifier = Modifier\n                    .weight(weight)\n                    .border(\n                        width = dividerThickness,\n                        color = headerTitlesBorderColor,\n                    ),\n                contentAlignment = contentAlignment,\n            ) {\n                Text(\n                    text = title,\n                    style = headerTitlesTextStyle,\n                    overflow = TextOverflow.Ellipsis,\n                    modifier = Modifier\n                        .height(38.dp)\n                        .wrapContentHeight(),\n                    textAlign = textAlign,\n                )\n            }\n        }\n    }\n}\n\n@Composable\n@Preview(showBackground = true)\nfun TableHeaderComponentPreview() {\n    val titles = listOf(\"Team\", \"Home\", \"Away\", \"Points\")\n    TableHeaderComponent(\n        headerTableTitles = titles,\n        headerTitlesBorderColor = darkColor(),\n        headerTitlesTextStyle = MaterialTheme.typography.labelMedium,\n        headerTitlesBackGroundColor = lightGray(),\n        contentAlignment = Alignment.Center,\n        textAlign = TextAlign.Center,\n        tablePadding = 0.dp,\n        columnToIndexIncreaseWidth = null,\n        dividerThickness = 1.dp,\n    )\n}\n"
  },
  {
    "path": "BeeTablesCompose/src/main/java/com/breens/beetablescompose/components/TableHeaderComponentWithoutColumnDividers.kt",
    "content": "/*\n * Copyright 2023 Breens Mbaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage com.breens.beetablescompose.components\n\nimport androidx.compose.foundation.background\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.layout.wrapContentHeight\nimport androidx.compose.material3.Divider\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.text.TextStyle\nimport androidx.compose.ui.text.style.TextAlign\nimport androidx.compose.ui.text.style.TextOverflow\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.unit.Dp\nimport androidx.compose.ui.unit.dp\nimport com.breens.beetablescompose.utils.lightColor\n\n@Composable\nfun TableHeaderComponentWithoutColumnDividers(\n    headerTableTitles: List<String>,\n    headerTitlesTextStyle: TextStyle,\n    headerTitlesBackGroundColor: Color,\n    dividerThickness: Dp,\n    contentAlignment: Alignment,\n    textAlign: TextAlign,\n    tablePadding: Dp,\n    columnToIndexIncreaseWidth: Int?,\n) {\n    Column {\n        Row(\n            Modifier\n                .fillMaxWidth()\n                .background(headerTitlesBackGroundColor)\n                .padding(horizontal = tablePadding),\n        ) {\n            headerTableTitles.forEachIndexed { index, title ->\n                val weight = if (index == columnToIndexIncreaseWidth) 8f else 2f\n                Box(\n                    modifier = Modifier\n                        .weight(weight),\n                    contentAlignment = contentAlignment,\n                ) {\n                    Text(\n                        text = title,\n                        style = headerTitlesTextStyle,\n                        overflow = TextOverflow.Ellipsis,\n                        modifier = Modifier\n                            .height(38.dp)\n                            .wrapContentHeight(),\n                        textAlign = textAlign,\n                    )\n                }\n            }\n        }\n        Divider(\n            modifier = Modifier\n                .fillMaxWidth()\n                .height(dividerThickness)\n                .background(headerTitlesBackGroundColor),\n        )\n    }\n}\n\n@Composable\n@Preview(showBackground = true)\nfun TableHeaderComponentWithoutColumnDividersPreview() {\n    val titles = listOf(\"Team\", \"Home\", \"Away\", \"Points\")\n\n    TableHeaderComponentWithoutColumnDividers(\n        headerTableTitles = titles,\n        headerTitlesTextStyle = MaterialTheme.typography.bodySmall,\n        headerTitlesBackGroundColor = lightColor(),\n        dividerThickness = 1.dp,\n        contentAlignment = Alignment.Center,\n        textAlign = TextAlign.Center,\n        tablePadding = 0.dp,\n        columnToIndexIncreaseWidth = null,\n    )\n}\n"
  },
  {
    "path": "BeeTablesCompose/src/main/java/com/breens/beetablescompose/components/TableRowComponent.kt",
    "content": "/*\n * Copyright 2023 Breens Mbaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage com.breens.beetablescompose.components\n\nimport androidx.compose.foundation.background\nimport androidx.compose.foundation.border\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.layout.wrapContentHeight\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.text.TextStyle\nimport androidx.compose.ui.text.style.TextAlign\nimport androidx.compose.ui.text.style.TextOverflow\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.unit.Dp\nimport androidx.compose.ui.unit.dp\nimport com.breens.beetablescompose.utils.lightColor\nimport com.breens.beetablescompose.utils.lightGray\n\n@Composable\nfun TableRowComponent(\n    data: List<String>,\n    rowBorderColor: Color,\n    rowTextStyle: TextStyle,\n    rowBackGroundColor: Color,\n    contentAlignment: Alignment,\n    textAlign: TextAlign,\n    tablePadding: Dp,\n    columnToIndexIncreaseWidth: Int?,\n    dividerThickness: Dp,\n) {\n    Row(\n        Modifier\n            .fillMaxWidth()\n            .background(rowBackGroundColor)\n            .padding(tablePadding),\n    ) {\n        data.forEachIndexed { index, title ->\n            val weight = if (index == columnToIndexIncreaseWidth) 8f else 2f\n            Box(\n                modifier = Modifier\n                    .weight(weight)\n                    .border(\n                        width = dividerThickness,\n                        color = rowBorderColor,\n                    ),\n                contentAlignment = contentAlignment,\n            ) {\n                Text(\n                    text = title,\n                    style = rowTextStyle,\n                    overflow = TextOverflow.Ellipsis,\n                    modifier = Modifier\n                        .height(38.dp)\n                        .wrapContentHeight()\n                        .padding(end = 8.dp),\n                    textAlign = textAlign,\n                )\n            }\n        }\n    }\n}\n\n@Composable\n@Preview(showBackground = true)\nfun TableRowComponentPreview() {\n    val titles = listOf(\"Man Utd\", \"26\", \"7\", \"95\")\n\n    TableRowComponent(\n        data = titles,\n        rowBorderColor = lightGray(),\n        rowTextStyle = MaterialTheme.typography.bodySmall,\n        rowBackGroundColor = lightColor(),\n        contentAlignment = Alignment.Center,\n        textAlign = TextAlign.Center,\n        tablePadding = 0.dp,\n        columnToIndexIncreaseWidth = null,\n        dividerThickness = 1.dp,\n    )\n}\n"
  },
  {
    "path": "BeeTablesCompose/src/main/java/com/breens/beetablescompose/components/TableRowComponentWithoutVerticalDividers.kt",
    "content": "/*\n * Copyright 2023 Breens Mbaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage com.breens.beetablescompose.components\n\nimport androidx.compose.foundation.background\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.height\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.layout.wrapContentHeight\nimport androidx.compose.material3.Divider\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.text.TextStyle\nimport androidx.compose.ui.text.style.TextAlign\nimport androidx.compose.ui.text.style.TextOverflow\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.unit.Dp\nimport androidx.compose.ui.unit.dp\nimport com.breens.beetablescompose.utils.lightGray\n\n@Composable\nfun TableRowComponentWithoutDividers(\n    data: List<String>,\n    rowTextStyle: TextStyle,\n    rowBackGroundColor: Color,\n    dividerThickness: Dp,\n    horizontalDividerColor: Color,\n    contentAlignment: Alignment,\n    textAlign: TextAlign,\n    tablePadding: Dp,\n    columnToIndexIncreaseWidth: Int?,\n) {\n    Column(\n        modifier = Modifier.padding(horizontal = tablePadding),\n    ) {\n        Row(\n            Modifier\n                .fillMaxWidth()\n                .background(rowBackGroundColor),\n        ) {\n            data.forEachIndexed { index, title ->\n                val weight = if (index == columnToIndexIncreaseWidth) 8f else 2f\n                Box(\n                    modifier = Modifier\n                        .weight(weight),\n                    contentAlignment = contentAlignment,\n                ) {\n                    Text(\n                        text = title,\n                        style = rowTextStyle,\n                        overflow = TextOverflow.Ellipsis,\n                        modifier = Modifier\n                            .height(38.dp)\n                            .wrapContentHeight()\n                            .padding(end = 8.dp),\n                        textAlign = textAlign,\n                    )\n                }\n            }\n        }\n        Divider(\n            modifier = Modifier\n                .fillMaxWidth()\n                .height(dividerThickness)\n                .background(horizontalDividerColor),\n        )\n    }\n}\n\n@Composable\n@Preview(showBackground = true)\nfun TableRowComponentWithoutDividersPreview() {\n    val titles = listOf(\"Man Utd\", \"26\", \"7\", \"95\")\n\n    TableRowComponentWithoutDividers(\n        data = titles,\n        rowTextStyle = MaterialTheme.typography.bodySmall,\n        rowBackGroundColor = MaterialTheme.colorScheme.background,\n        dividerThickness = 1.dp,\n        horizontalDividerColor = lightGray(),\n        contentAlignment = Alignment.Center,\n        textAlign = TextAlign.Center,\n        tablePadding = 0.dp,\n        columnToIndexIncreaseWidth = null,\n    )\n}\n"
  },
  {
    "path": "BeeTablesCompose/src/main/java/com/breens/beetablescompose/utils/ColorUtils.kt",
    "content": "/*\n * Copyright 2023 Breens Mbaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage com.breens.beetablescompose.utils\n\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.runtime.Composable\n\n@Composable\nfun lightGray() = MaterialTheme.colorScheme.onBackground.copy(alpha = 0.12f)\n\n@Composable\nfun darkColor() = MaterialTheme.colorScheme.onBackground\n\n@Composable\nfun lightColor() = MaterialTheme.colorScheme.background\n"
  },
  {
    "path": "BeeTablesCompose/src/main/java/com/breens/beetablescompose/utils/DataClassToList.kt",
    "content": "/*\n * Copyright 2023 Breens Mbaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage com.breens.beetablescompose.utils\n\nimport kotlin.reflect.KProperty1\nimport kotlin.reflect.full.primaryConstructor\n\ninline fun <reified T : Any> extractMembers(instance: T): List<Pair<String, String>> {\n    val members = mutableListOf<Pair<String, String>>()\n\n    // Get the primary constructor of the data class\n    val constructor = T::class.primaryConstructor\n\n    // Get the parameter names in the constructor declaration order\n    val parameterNames = constructor?.parameters?.map { it.name } ?: emptyList()\n\n    // Get all properties of the class\n    val properties = T::class.members.filterIsInstance<KProperty1<T, *>>()\n\n    // Filter and sort properties based on constructor parameter order\n    val sortedProperties = properties.filter { it.name in parameterNames }\n        .sortedBy { parameterNames.indexOf(it.name) }\n\n    sortedProperties.forEach { member ->\n        val name = member.name\n        val value = member.get(instance)?.toString() ?: \"---\"\n        members.add(name to value)\n    }\n\n    return members\n}\n"
  },
  {
    "path": "BeeTablesCompose/src/test/java/com/breens/beetablescompose/ExampleUnitTest.kt",
    "content": "/*\n * Copyright 2023 Breens Mbaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage com.breens.beetablescompose\n\nimport org.junit.Assert.assertEquals\nimport org.junit.Test\n\n/**\n * Example local unit test, which will execute on the development machine (host).\n *\n * See [testing documentation](http://d.android.com/tools/testing).\n */\nclass ExampleUnitTest {\n    @Test\n    fun addition_isCorrect() {\n        assertEquals(4, 2 + 2)\n    }\n}\n"
  },
  {
    "path": "README.md",
    "content": "<h2 align=\"center\">BeeTablesCompose</h2></br>\n\n<p align=\"center\">\n<a href=\"https://opensource.org/licenses/Apache-2.0\"><img alt=\"License\" src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\"/></a>\n<a href=\"https://android-arsenal.com/api?level=21+\"><img alt=\"API\" src=\"https://img.shields.io/badge/API-21%2B-brightgreen.svg?style=flat\"/></a>\n<a href=\"https://github.com/Breens-Mbaka/BeeTablesCompose/actions\"><img alt=\"Build Status\" src=\"https://github.com/Breens-Mbaka/BeeTablesCompose/workflows/Android%20CI/badge.svg\"/></a>\n<a href=\"https://jitpack.io/#Breens-Mbaka/BeeTablesCompose\"><img alt=\"Build Status\" src=\"https://jitpack.io/v/Breens-Mbaka/BeeTablesCompose.svg\"/></a>\n</p><br>\n\n<p align=\"center\">\n:bee:  A Compose UI data table library which allows developers to seamless integrate visually appealing and customizable tables to their Android apps or IOS apps.\n</p><br>\n\nhttps://github.com/Breens-Mbaka/BeeTablesCompose/assets/72180010/996cb574-766e-45f8-b459-6e7245da17bc\n\n# Features 🌟\n\n- Display tabular data with ease: The library allows you to display a list of data items in a\n  well-organized table format.\n\n- Customizable header titles: Customize the appearance of header titles with options for border\n  color, width, text style, and background color.\n\n- Alternating row colors: Easily set up alternating background colors for rows, enhancing the visual\n  presentation of your data.\n\n- Styling options: Customize the appearance of table rows, including border color, width, and text\n  style.\n\n- Table elevation: Control the elevation of the entire table with a customizable elevation value.\n\n- Rounded corners: Set the shape of the table's corners, with a default rounded corner shape for a\n  sleek look.\n\n# Getting Started 🦺\n\nTo use the BeeTablesCompose library, follow these steps:\n\n- Add this to either your **project build.gradle** file or **setting.gradle**, depending with what version of Android Studio you are using;\n\n```gradle\nrepositories {\n        ...\n        maven(url = \"https://jitpack.io\")\n}\n```\n\n- Add the dependency: Include the library in your project's dependencies;\n\n```gradle\ndependencies {\n    implementation(\"com.github.Breens-Mbaka:BeeTablesCompose:1.2.0\")\n}\n```\n\n# Usage\n\n- Import the library: Import the BeeTablesCompose function into your Compose-based project.\n\n- Prepare your data: Organize your data in a list of objects to be displayed in the table.\n\n- Define the header titles: Create a list of header titles that will be displayed at the top of the\n  table.\n\n- Use the BeeTablesCompose function: Invoke the BeeTablesCompose function with your data and header\n  titles as parameters to generate the data table.\n\n<p align=\"center\">\n<img src=\"https://github.com/Breens-Mbaka/BeeTablesCompose/assets/72180010/f5ea94a1-df41-472c-91e2-03d6cb7dc82f\" />\n\n# NOTE ⚠️🚨\n- Before building a release APK of your app, if you have enabled minification, make sure to annotate your table data classes with @Keep. This will prevent the class from being removed at runtime.\n```kotlin\n@Keep\ndata class User(\n  val name: String,\n  val email: Int,\n  val city: String\n)\n```\n\n# Want a new shiny feature 🪩✨\n- If you want to request a new feature please first read this [short guide](https://github.com/Breens-Mbaka/BeeTablesCompose/blob/master/.github/ISSUE_TEMPLATE/feature_request.md)\n\n# Want to report a bug 🐞\n- If you want to report a bug please first read this [short guide](https://github.com/Breens-Mbaka/BeeTablesCompose/blob/master/.github/ISSUE_TEMPLATE/bug_report.md)\n\n# Want to contribute 🛠\n- If you want to contribute please first read this [short guide](https://github.com/Breens-Mbaka/BeeTablesCompose/blob/master/.github/ISSUE_TEMPLATE/pull_request_template.md)\n\n# Find this repository useful? :heart:\n\nSupport it by joining _\n_[stargazers](https://github.com/Breens-Mbaka/BeeTablesCompose/stargazers)__\nfor this repository. :star: <br>\nAlso __[follow](https://github.com/Breens-Mbaka)__ me for my next creations! 🤩\n</p>\n\n# License\n```xml\nDesigned and developed by 2024 Breens Mbaka\n\n        Licensed under the Apache License, Version 2.0 (the \"License\");\n        you may not use this file except in compliance with the License.\n        You may obtain a copy of the License at\n\n        http://www.apache.org/licenses/LICENSE-2.0\n\n        Unless required by applicable law or agreed to in writing, software\n        distributed under the License is distributed on an \"AS IS\" BASIS,\n        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n        See the License for the specific language governing permissions and\n        limitations under the License.\n```\n"
  },
  {
    "path": "app/.gitignore",
    "content": "/build"
  },
  {
    "path": "app/build.gradle.kts",
    "content": "/*\n * Copyright 2023 Breens Mbaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nplugins {\n    id(\"com.android.application\")\n    id(\"org.jetbrains.kotlin.android\")\n    id(\"org.jetbrains.kotlin.plugin.compose\")\n}\n\nandroid {\n    namespace = \"com.breens.beetablescompose\"\n    compileSdk = 33\n\n    defaultConfig {\n        applicationId = \"com.breens.beetablescompose\"\n        minSdk = 21\n        targetSdk = 33\n        versionCode = 1\n        versionName = \"1.0\"\n\n        testInstrumentationRunner = \"androidx.test.runner.AndroidJUnitRunner\"\n        vectorDrawables {\n            useSupportLibrary = true\n        }\n    }\n\n    buildTypes {\n        release {\n            isMinifyEnabled = false\n            proguardFiles(\n                getDefaultProguardFile(\"proguard-android-optimize.txt\"),\n                \"proguard-rules.pro\",\n            )\n            signingConfig = signingConfigs.getByName(\"debug\")\n        }\n    }\n    compileOptions {\n        sourceCompatibility = JavaVersion.VERSION_1_8\n        targetCompatibility = JavaVersion.VERSION_1_8\n    }\n    kotlinOptions {\n        jvmTarget = \"1.8\"\n    }\n    packaging {\n        resources {\n            excludes += \"/META-INF/{AL2.0,LGPL2.1}\"\n        }\n    }\n    buildFeatures {\n        compose = true\n    }\n}\n\ndependencies {\n    implementation(\"androidx.core:core-ktx:1.9.0\")\n    implementation(\"androidx.lifecycle:lifecycle-runtime-ktx:2.6.1\")\n    implementation(\"androidx.activity:activity-compose:1.7.2\")\n    implementation(platform(\"androidx.compose:compose-bom:2023.03.00\"))\n    implementation(\"androidx.compose.ui:ui\")\n    implementation(\"androidx.compose.ui:ui-graphics\")\n    implementation(\"androidx.compose.ui:ui-tooling-preview\")\n    implementation(\"androidx.compose.material3:material3\")\n\n    implementation(project(\":BeeTablesCompose\"))\n\n    testImplementation(\"junit:junit:4.13.2\")\n    androidTestImplementation(\"androidx.test.ext:junit:1.1.5\")\n    androidTestImplementation(\"androidx.test.espresso:espresso-core:3.5.1\")\n    androidTestImplementation(platform(\"androidx.compose:compose-bom:2023.03.00\"))\n    androidTestImplementation(\"androidx.compose.ui:ui-test-junit4\")\n    debugImplementation(\"androidx.compose.ui:ui-tooling\")\n    debugImplementation(\"androidx.compose.ui:ui-test-manifest\")\n}\n"
  },
  {
    "path": "app/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguardFiles setting in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n\n# Uncomment this to preserve the line number information for\n# debugging stack traces.\n#-keepattributes SourceFile,LineNumberTable\n\n# If you keep the line number information, uncomment this to\n# hide the original source file name.\n#-renamesourcefileattribute SourceFile"
  },
  {
    "path": "app/src/androidTest/java/com/breens/beetablescompose/ExampleInstrumentedTest.kt",
    "content": "/*\n * Copyright 2023 Breens Mbaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage com.breens.beetablescompose\n\nimport androidx.test.ext.junit.runners.AndroidJUnit4\nimport androidx.test.platform.app.InstrumentationRegistry\nimport org.junit.Assert.assertEquals\nimport org.junit.Test\nimport org.junit.runner.RunWith\n\n/**\n * Instrumented test, which will execute on an Android device.\n *\n * See [testing documentation](http://d.android.com/tools/testing).\n */\n@RunWith(AndroidJUnit4::class)\nclass ExampleInstrumentedTest {\n    @Test\n    fun useAppContext() {\n        // Context of the app under test.\n        val appContext = InstrumentationRegistry.getInstrumentation().targetContext\n        assertEquals(\"com.breens.beetablescompose\", appContext.packageName)\n    }\n}\n"
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\">\n\n    <application\n        android:allowBackup=\"true\"\n        android:dataExtractionRules=\"@xml/data_extraction_rules\"\n        android:fullBackupContent=\"@xml/backup_rules\"\n        android:icon=\"@mipmap/ic_launcher\"\n        android:label=\"@string/app_name\"\n        android:roundIcon=\"@mipmap/ic_launcher_round\"\n        android:supportsRtl=\"true\"\n        android:theme=\"@style/Theme.BeeTablesCompose\"\n        tools:targetApi=\"31\">\n        <activity\n            android:name=\".MainActivity\"\n            android:exported=\"true\"\n            android:label=\"@string/app_name\"\n            android:theme=\"@style/Theme.BeeTablesCompose\">\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\" />\n\n                <category android:name=\"android.intent.category.LAUNCHER\" />\n            </intent-filter>\n        </activity>\n    </application>\n\n</manifest>"
  },
  {
    "path": "app/src/main/java/com/breens/beetablescompose/MainActivity.kt",
    "content": "/*\n * Copyright 2023 Breens Mbaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage com.breens.beetablescompose\n\nimport android.os.Bundle\nimport androidx.activity.ComponentActivity\nimport androidx.activity.compose.setContent\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.compose.foundation.layout.Row\nimport androidx.compose.foundation.layout.Spacer\nimport androidx.compose.foundation.layout.fillMaxSize\nimport androidx.compose.foundation.layout.fillMaxWidth\nimport androidx.compose.foundation.layout.padding\nimport androidx.compose.foundation.lazy.LazyColumn\nimport androidx.compose.material3.Checkbox\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.Slider\nimport androidx.compose.material3.Surface\nimport androidx.compose.material3.Switch\nimport androidx.compose.material3.Text\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\nimport androidx.compose.runtime.remember\nimport androidx.compose.runtime.setValue\nimport androidx.compose.ui.Alignment\nimport androidx.compose.ui.Modifier\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.text.style.TextAlign\nimport androidx.compose.ui.tooling.preview.Preview\nimport androidx.compose.ui.unit.dp\nimport com.breens.beetablescompose.ui.theme.BeeTablesComposeTheme\nimport com.breens.beetablescompose.utils.premierLeagueTeams\nimport com.breens.beetablescompose.utils.titles\n\nclass MainActivity : ComponentActivity() {\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        setContent {\n            BeeTablesComposeTheme {\n                MainUi()\n            }\n        }\n    }\n}\n\n@Composable\nfun MainUi(modifier: Modifier = Modifier) {\n    Surface(\n        color = MaterialTheme.colorScheme.background,\n        modifier = modifier.fillMaxSize(),\n    ) {\n        var disableVerticalDividers by remember {\n            mutableStateOf(false)\n        }\n        var horizontalDividerThickness by remember {\n            mutableStateOf(0.6f)\n        }\n\n        var enableHeaderTitles by remember {\n            mutableStateOf(false)\n        }\n\n        var centerContent by remember {\n            mutableStateOf(false)\n        }\n\n        var centerTextAlignment by remember {\n            mutableStateOf(false)\n        }\n\n        var increaseColumnWidth by remember {\n            mutableStateOf<Int?>(null)\n        }\n        LazyColumn(contentPadding = PaddingValues(16.dp)) {\n            item {\n                BeeTablesCompose(\n                    data = premierLeagueTeams,\n                    enableTableHeaderTitles = enableHeaderTitles,\n                    disableVerticalDividers = disableVerticalDividers,\n                    dividerThickness = horizontalDividerThickness.dp,\n                    columnToIndexIncreaseWidth = increaseColumnWidth?.minus(1),\n                    headerTableTitles = titles,\n                    headerTitlesBackGroundColor = Color(0XFFE9AB17),\n                    tableRowColors = listOf(\n                        MaterialTheme.colorScheme.surface,\n                        MaterialTheme.colorScheme.surface,\n                    ),\n                    contentAlignment = if (centerContent) Alignment.Center else Alignment.CenterStart,\n                    textAlign = if (centerTextAlignment) TextAlign.Center else TextAlign.Start,\n                )\n            }\n\n            item {\n                Row(\n                    modifier = Modifier.fillMaxWidth(),\n                    verticalAlignment = Alignment.CenterVertically,\n                    horizontalArrangement = Arrangement.SpaceBetween,\n                ) {\n                    Text(\n                        text = \"Enable Table Header Titles\",\n                        style = MaterialTheme.typography.bodyMedium,\n                    )\n                    Switch(\n                        checked = enableHeaderTitles,\n                        onCheckedChange = {\n                            enableHeaderTitles = it\n                        },\n                    )\n                }\n\n                Spacer(modifier = Modifier.padding(12.dp))\n            }\n            item {\n                Row(\n                    modifier = Modifier.fillMaxWidth(),\n                    verticalAlignment = Alignment.CenterVertically,\n                    horizontalArrangement = Arrangement.SpaceBetween,\n                ) {\n                    Text(\n                        text = \"Hide Vertical Divider\",\n                        style = MaterialTheme.typography.bodyMedium,\n                    )\n                    Switch(\n                        checked = disableVerticalDividers,\n                        onCheckedChange = {\n                            disableVerticalDividers = it\n                        },\n                    )\n                }\n\n                Spacer(modifier = Modifier.padding(8.dp))\n            }\n\n            item {\n                Row(\n                    modifier = Modifier.fillMaxWidth(),\n                    verticalAlignment = Alignment.CenterVertically,\n                    horizontalArrangement = Arrangement.SpaceBetween,\n                ) {\n                    Text(\n                        text = \"Divider Thickness\",\n                        style = MaterialTheme.typography.bodyMedium,\n                    )\n\n                    Slider(value = horizontalDividerThickness, onValueChange = {\n                        horizontalDividerThickness = it\n                    })\n                }\n            }\n\n            item {\n                Spacer(modifier = Modifier.padding(12.dp))\n\n                Row(\n                    modifier = Modifier.fillMaxWidth(),\n                    verticalAlignment = Alignment.CenterVertically,\n                    horizontalArrangement = Arrangement.SpaceBetween,\n                ) {\n                    Text(\n                        text = \"Center Content\",\n                        style = MaterialTheme.typography.bodyMedium,\n                    )\n                    Switch(\n                        checked = centerContent,\n                        onCheckedChange = {\n                            centerContent = it\n                        },\n                    )\n                }\n\n                Spacer(modifier = Modifier.padding(12.dp))\n            }\n\n            item {\n                Row(\n                    modifier = Modifier.fillMaxWidth(),\n                    verticalAlignment = Alignment.CenterVertically,\n                    horizontalArrangement = Arrangement.SpaceBetween,\n                ) {\n                    Text(\n                        text = \"Text Alignment Center\",\n                        style = MaterialTheme.typography.bodyMedium,\n                    )\n                    Switch(\n                        checked = centerTextAlignment,\n                        onCheckedChange = {\n                            centerTextAlignment = it\n                        },\n                    )\n                }\n\n                Spacer(modifier = Modifier.padding(12.dp))\n            }\n\n            item {\n                Column {\n                    Text(\n                        text = \"The Column To Increase Width\",\n                        style = MaterialTheme.typography.bodyMedium,\n                    )\n                    Row(\n                        modifier = Modifier.fillMaxWidth(),\n                        verticalAlignment = Alignment.CenterVertically,\n                        horizontalArrangement = Arrangement.spacedBy(8.dp),\n                    ) {\n                        Text(text = \"1\", style = MaterialTheme.typography.bodySmall)\n                        Checkbox(\n                            checked = increaseColumnWidth == 1,\n                            onCheckedChange = {\n                                increaseColumnWidth = if (it) 1 else null\n                            },\n                        )\n                    }\n\n                    Row(\n                        modifier = Modifier.fillMaxWidth(),\n                        verticalAlignment = Alignment.CenterVertically,\n                        horizontalArrangement = Arrangement.spacedBy(8.dp),\n                    ) {\n                        Text(text = \"2\", style = MaterialTheme.typography.bodySmall)\n                        Checkbox(\n                            checked = increaseColumnWidth == 2,\n                            onCheckedChange = {\n                                increaseColumnWidth = if (it) 2 else null\n                            },\n                        )\n                    }\n\n                    Row(\n                        modifier = Modifier.fillMaxWidth(),\n                        verticalAlignment = Alignment.CenterVertically,\n                        horizontalArrangement = Arrangement.spacedBy(8.dp),\n                    ) {\n                        Text(text = \"3\", style = MaterialTheme.typography.bodySmall)\n                        Checkbox(\n                            checked = increaseColumnWidth == 3,\n                            onCheckedChange = {\n                                increaseColumnWidth = if (it) 3 else null\n                            },\n                        )\n                    }\n\n                    Row(\n                        modifier = Modifier.fillMaxWidth(),\n                        verticalAlignment = Alignment.CenterVertically,\n                        horizontalArrangement = Arrangement.spacedBy(8.dp),\n                    ) {\n                        Text(text = \"4\", style = MaterialTheme.typography.bodySmall)\n                        Checkbox(\n                            checked = increaseColumnWidth == 4,\n                            onCheckedChange = {\n                                increaseColumnWidth = if (it) 4 else null\n                            },\n                        )\n                    }\n                }\n            }\n        }\n    }\n}\n\n@Preview\n@Composable\nprivate fun MainUiPreview() {\n    BeeTablesComposeTheme {\n        MainUi()\n    }\n}\n"
  },
  {
    "path": "app/src/main/java/com/breens/beetablescompose/ui/theme/Color.kt",
    "content": "/*\n * Copyright 2023 Breens Mbaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage com.breens.beetablescompose.ui.theme\n\nimport androidx.compose.ui.graphics.Color\n\nval Purple80 = Color(0xFFD0BCFF)\nval PurpleGrey80 = Color(0xFFCCC2DC)\nval Pink80 = Color(0xFFEFB8C8)\n\nval Purple40 = Color(0xFF6650a4)\nval PurpleGrey40 = Color(0xFF625b71)\nval Pink40 = Color(0xFF7D5260)\n"
  },
  {
    "path": "app/src/main/java/com/breens/beetablescompose/ui/theme/Theme.kt",
    "content": "/*\n * Copyright 2023 Breens Mbaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage com.breens.beetablescompose.ui.theme\n\nimport android.app.Activity\nimport android.os.Build\nimport androidx.compose.foundation.isSystemInDarkTheme\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.material3.darkColorScheme\nimport androidx.compose.material3.dynamicDarkColorScheme\nimport androidx.compose.material3.dynamicLightColorScheme\nimport androidx.compose.material3.lightColorScheme\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.SideEffect\nimport androidx.compose.ui.graphics.toArgb\nimport androidx.compose.ui.platform.LocalContext\nimport androidx.compose.ui.platform.LocalView\nimport androidx.core.view.WindowCompat\n\nprivate val DarkColorScheme = darkColorScheme(\n    primary = Purple80,\n    secondary = PurpleGrey80,\n    tertiary = Pink80,\n)\n\nprivate val LightColorScheme = lightColorScheme(\n    primary = Purple40,\n    secondary = PurpleGrey40,\n    tertiary = Pink40,\n\n    /* Other default colors to override\n    background = Color(0xFFFFFBFE),\n    surface = Color(0xFFFFFBFE),\n    onPrimary = Color.White,\n    onSecondary = Color.White,\n    onTertiary = Color.White,\n    onBackground = Color(0xFF1C1B1F),\n    onSurface = Color(0xFF1C1B1F),\n     */\n)\n\n@Composable\nfun BeeTablesComposeTheme(\n    darkTheme: Boolean = isSystemInDarkTheme(),\n    // Dynamic color is available on Android 12+\n    dynamicColor: Boolean = true,\n    content: @Composable () -> Unit,\n) {\n    val colorScheme = when {\n        dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> {\n            val context = LocalContext.current\n            if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context)\n        }\n\n        darkTheme -> DarkColorScheme\n        else -> LightColorScheme\n    }\n    val view = LocalView.current\n    if (!view.isInEditMode) {\n        SideEffect {\n            val window = (view.context as Activity).window\n            window.statusBarColor = colorScheme.primary.toArgb()\n            WindowCompat.getInsetsController(window, view).isAppearanceLightStatusBars = darkTheme\n        }\n    }\n\n    MaterialTheme(\n        colorScheme = colorScheme,\n        typography = Typography,\n        content = content,\n    )\n}\n"
  },
  {
    "path": "app/src/main/java/com/breens/beetablescompose/ui/theme/Type.kt",
    "content": "/*\n * Copyright 2023 Breens Mbaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage com.breens.beetablescompose.ui.theme\n\nimport androidx.compose.material3.Typography\nimport androidx.compose.ui.text.TextStyle\nimport androidx.compose.ui.text.font.FontFamily\nimport androidx.compose.ui.text.font.FontWeight\nimport androidx.compose.ui.unit.sp\n\n// Set of Material typography styles to start with\nval Typography = Typography(\n    bodyLarge = TextStyle(\n        fontFamily = FontFamily.Default,\n        fontWeight = FontWeight.Normal,\n        fontSize = 16.sp,\n        lineHeight = 24.sp,\n        letterSpacing = 0.5.sp,\n    ),\n    /* Other default text styles to override\n    titleLarge = TextStyle(\n        fontFamily = FontFamily.Default,\n        fontWeight = FontWeight.Normal,\n        fontSize = 22.sp,\n        lineHeight = 28.sp,\n        letterSpacing = 0.sp\n    ),\n    labelSmall = TextStyle(\n        fontFamily = FontFamily.Default,\n        fontWeight = FontWeight.Medium,\n        fontSize = 11.sp,\n        lineHeight = 16.sp,\n        letterSpacing = 0.5.sp\n    )\n     */\n)\n"
  },
  {
    "path": "app/src/main/java/com/breens/beetablescompose/utils/Teams.kt",
    "content": "/*\n * Copyright 2023 Breens Mbaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage com.breens.beetablescompose.utils\n\ndata class Teams(\n    val name: String,\n    val homeWins: String,\n    val awayWins: String,\n    val totalPoints: String,\n)\n\nval premierLeagueTeams = listOf(\n    Teams(\"Manchester United\", \"1\", \"2\", \"14\"),\n    Teams(\"Manchester City\", \"5\", \"3\", \"18\"),\n    Teams(\"Chelsea\", \"22\", \"1\", \"19\"),\n    Teams(\"Arsenal\", \"4\", \"4\", \"23\"),\n    Teams(\"Liverpool\", \"21\", \"1\", \"23\"),\n    Teams(\"Tottenham\", \"1\", \"1\", \"3\"),\n    // Add more teams as needed\n)\n\nval titles = listOf(\"Team\", \"Home\", \"Away\", \"Points\")\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_launcher_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"108dp\"\n    android:height=\"108dp\"\n    android:viewportWidth=\"108\"\n    android:viewportHeight=\"108\">\n    <path\n        android:fillColor=\"#3DDC84\"\n        android:pathData=\"M0,0h108v108h-108z\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M9,0L9,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,0L19,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M29,0L29,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M39,0L39,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M49,0L49,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M59,0L59,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M69,0L69,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M79,0L79,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M89,0L89,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M99,0L99,108\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,9L108,9\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,19L108,19\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,29L108,29\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,39L108,39\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,49L108,49\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,59L108,59\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,69L108,69\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,79L108,79\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,89L108,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M0,99L108,99\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,29L89,29\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,39L89,39\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,49L89,49\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,59L89,59\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,69L89,69\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M19,79L89,79\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M29,19L29,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M39,19L39,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M49,19L49,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M59,19L59,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M69,19L69,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n    <path\n        android:fillColor=\"#00000000\"\n        android:pathData=\"M79,19L79,89\"\n        android:strokeWidth=\"0.8\"\n        android:strokeColor=\"#33FFFFFF\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable-v24/ic_launcher_foreground.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:aapt=\"http://schemas.android.com/aapt\"\n    android:width=\"108dp\"\n    android:height=\"108dp\"\n    android:viewportWidth=\"108\"\n    android:viewportHeight=\"108\">\n    <path android:pathData=\"M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z\">\n        <aapt:attr name=\"android:fillColor\">\n            <gradient\n                android:endX=\"85.84757\"\n                android:endY=\"92.4963\"\n                android:startX=\"42.9492\"\n                android:startY=\"49.59793\"\n                android:type=\"linear\">\n                <item\n                    android:color=\"#44000000\"\n                    android:offset=\"0.0\" />\n                <item\n                    android:color=\"#00000000\"\n                    android:offset=\"1.0\" />\n            </gradient>\n        </aapt:attr>\n    </path>\n    <path\n        android:fillColor=\"#FFFFFF\"\n        android:fillType=\"nonZero\"\n        android:pathData=\"M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z\"\n        android:strokeWidth=\"1\"\n        android:strokeColor=\"#00000000\" />\n</vector>"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@drawable/ic_launcher_background\" />\n    <foreground android:drawable=\"@drawable/ic_launcher_foreground\" />\n    <monochrome android:drawable=\"@drawable/ic_launcher_foreground\" />\n</adaptive-icon>"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@drawable/ic_launcher_background\" />\n    <foreground android:drawable=\"@drawable/ic_launcher_foreground\" />\n    <monochrome android:drawable=\"@drawable/ic_launcher_foreground\" />\n</adaptive-icon>"
  },
  {
    "path": "app/src/main/res/values/colors.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"purple_200\">#FFBB86FC</color>\n    <color name=\"purple_500\">#FF6200EE</color>\n    <color name=\"purple_700\">#FF3700B3</color>\n    <color name=\"teal_200\">#FF03DAC5</color>\n    <color name=\"teal_700\">#FF018786</color>\n    <color name=\"black\">#FF000000</color>\n    <color name=\"white\">#FFFFFFFF</color>\n</resources>"
  },
  {
    "path": "app/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\">BeeTablesCompose</string>\n</resources>"
  },
  {
    "path": "app/src/main/res/values/themes.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n    <style name=\"Theme.BeeTablesCompose\" parent=\"android:Theme.Material.Light.NoActionBar\" />\n</resources>"
  },
  {
    "path": "app/src/main/res/xml/backup_rules.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><!--\n   Sample backup rules file; uncomment and customize as necessary.\n   See https://developer.android.com/guide/topics/data/autobackup\n   for details.\n   Note: This file is ignored for devices older that API 31\n   See https://developer.android.com/about/versions/12/backup-restore\n-->\n<full-backup-content>\n    <!--\n   <include domain=\"sharedpref\" path=\".\"/>\n   <exclude domain=\"sharedpref\" path=\"device.xml\"/>\n-->\n</full-backup-content>"
  },
  {
    "path": "app/src/main/res/xml/data_extraction_rules.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?><!--\n   Sample data extraction rules file; uncomment and customize as necessary.\n   See https://developer.android.com/about/versions/12/backup-restore#xml-changes\n   for details.\n-->\n<data-extraction-rules>\n    <cloud-backup>\n        <!-- TODO: Use <include> and <exclude> to control what is backed up.\n        <include .../>\n        <exclude .../>\n        -->\n    </cloud-backup>\n    <!--\n    <device-transfer>\n        <include .../>\n        <exclude .../>\n    </device-transfer>\n    -->\n</data-extraction-rules>"
  },
  {
    "path": "app/src/test/java/com/breens/beetablescompose/ExampleUnitTest.kt",
    "content": "/*\n * Copyright 2023 Breens Mbaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage com.breens.beetablescompose\n\nimport org.junit.Assert.assertEquals\nimport org.junit.Test\n\n/**\n * Example local unit test, which will execute on the development machine (host).\n *\n * See [testing documentation](http://d.android.com/tools/testing).\n */\nclass ExampleUnitTest {\n    @Test\n    fun addition_isCorrect() {\n        assertEquals(4, 2 + 2)\n    }\n}\n"
  },
  {
    "path": "build.gradle.kts",
    "content": "// Top-level build file where you can add configuration options common to all sub-projects/modules.\nplugins {\n    id(\"com.android.application\") version \"8.1.4\" apply false\n    id(\"org.jetbrains.kotlin.android\") version \"2.0.0\" apply false\n    id(\"com.android.library\") version \"8.1.4\" apply false\n    id(\"com.diffplug.spotless\") version \"6.19.0\" apply false\n    id(\"org.jetbrains.kotlin.plugin.compose\") version \"2.0.0\" apply false\n}\n\nsubprojects {\n    apply(plugin = \"com.diffplug.spotless\")\n    configure<com.diffplug.gradle.spotless.SpotlessExtension> {\n        kotlin {\n            target(\n                fileTree(\".\") {\n                    include(\"**/*.kt\")\n                    exclude(\"spotless/copyright.kt\", \"**/build/**\")\n                },\n            )\n            ktlint()\n            licenseHeaderFile(rootProject.file(\"spotless/copyright.kt\"))\n            trimTrailingWhitespace()\n            endWithNewline()\n        }\n        format(\"kts\") {\n            target(\"**/*.kts\")\n            targetExclude(\"$buildDir/**/*.kts\")\n            licenseHeaderFile(rootProject.file(\"spotless/copyright.kt\"), \"(^(?![\\\\/ ]\\\\*).*$)\")\n            trimTrailingWhitespace()\n            endWithNewline()\n        }\n    }\n\n    afterEvaluate {\n        tasks.named(\"preBuild\") {\n            dependsOn(\"spotlessApply\")\n        }\n    }\n}\n\n"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "#Thu Jul 27 02:22:27 EAT 2023\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-8.2-bin.zip\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\n"
  },
  {
    "path": "gradle.properties",
    "content": "# Project-wide Gradle settings.\n# IDE (e.g. Android Studio) users:\n# Gradle settings configured through the IDE *will override*\n# any settings specified in this file.\n# For more details on how to configure your build environment visit\n# http://www.gradle.org/docs/current/userguide/build_environment.html\n# Specifies the JVM arguments used for the daemon process.\n# The setting is particularly useful for tweaking memory settings.\norg.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8\n# When configured, Gradle will run in incubating parallel mode.\n# This option should only be used with decoupled projects. More details, visit\n# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects\n# org.gradle.parallel=true\n# AndroidX package structure to make it clearer which packages are bundled with the\n# Android operating system, and which are packaged with your app's APK\n# https://developer.android.com/topic/libraries/support-library/androidx-rn\nandroid.useAndroidX=true\n# Kotlin code style for this project: \"official\" or \"obsolete\":\nkotlin.code.style=official\n# Enables namespacing of each library's R class so that its R class includes only the\n# resources declared in the library itself and none from the library's dependencies,\n# thereby reducing the size of the R class for that library\nandroid.nonTransitiveRClass=true"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env sh\n\n#\n# Copyright 2015 the original author or authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS='\"-Xmx64m\" \"-Xms64m\"'\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn () {\n    echo \"$*\"\n}\n\ndie () {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\nnonstop=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\n  NONSTOP* )\n    nonstop=true\n    ;;\nesac\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" -a \"$nonstop\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin or MSYS, switch paths to Windows format before running java\nif [ \"$cygwin\" = \"true\" -o \"$msys\" = \"true\" ] ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=`expr $i + 1`\n    done\n    case $i in\n        0) set -- ;;\n        1) set -- \"$args0\" ;;\n        2) set -- \"$args0\" \"$args1\" ;;\n        3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Escape application args\nsave () {\n    for i do printf %s\\\\n \"$i\" | sed \"s/'/'\\\\\\\\''/g;1s/^/'/;\\$s/\\$/' \\\\\\\\/\" ; done\n    echo \" \"\n}\nAPP_ARGS=`save \"$@\"`\n\n# Collect all arguments for the java command, following the shell quoting and substitution rules\neval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS \"\\\"-Dorg.gradle.appname=$APP_BASE_NAME\\\"\" -classpath \"\\\"$CLASSPATH\\\"\" org.gradle.wrapper.GradleWrapperMain \"$APP_ARGS\"\n\nexec \"$JAVACMD\" \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@rem\r\n@rem Copyright 2015 the original author or authors.\r\n@rem\r\n@rem Licensed under the Apache License, Version 2.0 (the \"License\");\r\n@rem you may not use this file except in compliance with the License.\r\n@rem You may obtain a copy of the License at\r\n@rem\r\n@rem      https://www.apache.org/licenses/LICENSE-2.0\r\n@rem\r\n@rem Unless required by applicable law or agreed to in writing, software\r\n@rem distributed under the License is distributed on an \"AS IS\" BASIS,\r\n@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n@rem See the License for the specific language governing permissions and\r\n@rem limitations under the License.\r\n@rem\r\n\r\n@if \"%DEBUG%\" == \"\" @echo off\r\n@rem ##########################################################################\r\n@rem\r\n@rem  Gradle startup script for Windows\r\n@rem\r\n@rem ##########################################################################\r\n\r\n@rem Set local scope for the variables with windows NT shell\r\nif \"%OS%\"==\"Windows_NT\" setlocal\r\n\r\nset DIRNAME=%~dp0\r\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\r\nset APP_BASE_NAME=%~n0\r\nset APP_HOME=%DIRNAME%\r\n\r\n@rem Resolve any \".\" and \"..\" in APP_HOME to make it shorter.\r\nfor %%i in (\"%APP_HOME%\") do set APP_HOME=%%~fi\r\n\r\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\r\nset DEFAULT_JVM_OPTS=\"-Xmx64m\" \"-Xms64m\"\r\n\r\n@rem Find java.exe\r\nif defined JAVA_HOME goto findJavaFromJavaHome\r\n\r\nset JAVA_EXE=java.exe\r\n%JAVA_EXE% -version >NUL 2>&1\r\nif \"%ERRORLEVEL%\" == \"0\" goto execute\r\n\r\necho.\r\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\r\necho.\r\necho Please set the JAVA_HOME variable in your environment to match the\r\necho location of your Java installation.\r\n\r\ngoto fail\r\n\r\n:findJavaFromJavaHome\r\nset JAVA_HOME=%JAVA_HOME:\"=%\r\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\r\n\r\nif exist \"%JAVA_EXE%\" goto execute\r\n\r\necho.\r\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\r\necho.\r\necho Please set the JAVA_HOME variable in your environment to match the\r\necho location of your Java installation.\r\n\r\ngoto fail\r\n\r\n:execute\r\n@rem Setup the command line\r\n\r\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\r\n\r\n\r\n@rem Execute Gradle\r\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %*\r\n\r\n:end\r\n@rem End local scope for the variables with windows NT shell\r\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\r\n\r\n:fail\r\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\r\nrem the _cmd.exe /c_ return code!\r\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\r\nexit /b 1\r\n\r\n:mainEnd\r\nif \"%OS%\"==\"Windows_NT\" endlocal\r\n\r\n:omega\r\n"
  },
  {
    "path": "jitpack.yml",
    "content": "jdk:\n- openjdk17\nbefore_install:\n- ./scripts/prepareJitpackEnvironment.sh"
  },
  {
    "path": "settings.gradle.kts",
    "content": "pluginManagement {\n    repositories {\n        google()\n        mavenCentral()\n        gradlePluginPortal()\n    }\n}\ndependencyResolutionManagement {\n    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)\n    repositories {\n        google()\n        mavenCentral()\n    }\n}\n\nrootProject.name = \"BeeTablesCompose\"\ninclude(\":app\")\ninclude(\":BeeTablesCompose\")\n"
  },
  {
    "path": "spotless/copyright.kt",
    "content": "/*\n * Copyright 2023 Breens Mbaka\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */"
  }
]