From f50789204e8e161f7a46012f93c93b3e8a38890c Mon Sep 17 00:00:00 2001 From: Mala Ruparel <166207900+MalaRuparel2023@users.noreply.github.com> Date: Mon, 15 Apr 2024 16:05:21 +0530 Subject: [PATCH 1/6] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 6966ba7..4e70525 100644 --- a/README.md +++ b/README.md @@ -1 +1,12 @@ # Smart Filter +
+  
+    public class MyFirstClass
+    {
+        public static void main(String ... args)
+        {
+            System.out.println("Hello, world!");
+        }
+    }
+  
+
From 33da8c91ff997ae9fc6c6a1c4d963f6a3d8642fe Mon Sep 17 00:00:00 2001 From: Mala Ruparel <166207900+MalaRuparel2023@users.noreply.github.com> Date: Mon, 22 Apr 2024 18:42:38 +0530 Subject: [PATCH 2/6] Update README.md --- README.md | 44 ++++++++++++++++++++++++++++++++------------ 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 4e70525..885a8b9 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,32 @@ -# Smart Filter -
-  
-    public class MyFirstClass
-    {
-        public static void main(String ... args)
-        {
-            System.out.println("Hello, world!");
-        }
-    }
-  
-
+# Smart Filter Library + +This is a library for creating and managing radio groups in Android. It provides support for single line, multi line and row item radio groups. + +## Features + +- Single Line Radio Group: A radio group that displays its items in a single line. +- Multi Line Radio Group: A radio group that displays its items in multiple lines. +- Row Item Radio Group: A radio group that displays its items in a row. + +## Getting Started + +These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. + +### Prerequisites + +- Android Studio Iguana | 2023.2.1 Patch 2 or later +- JDK 8 +- Android SDK 24 or later + +### Installing + +1. Clone the repository: `git clone https://github.com/smartSenseSolutions/smart-filter-library.git` +2. Open the project in Android Studio. +3. Build and run the project on an emulator or device. + +## Usage + +To use the Smart Filter library in your Android application, you need to include it in your project's dependencies. Add the following line to your `build.gradle` file: + +```kotlin +implementation 'com.ss:smartfilterlib:1.0.0' From 6ad58bff5583883a0ace5a9709d1126cdc824a59 Mon Sep 17 00:00:00 2001 From: Amit Siddhpura <149592822+amitsid1408@users.noreply.github.com> Date: Tue, 23 Apr 2024 12:20:22 +0530 Subject: [PATCH 3/6] Create build.yml Added actions file for building apk and upload it --- .github/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a4337d3 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,31 @@ +name: Android build + +on: + push: + branches: + - "development" + + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Java SDK 17 + uses: actions/setup-java@v3 + with: + distribution: 'adopt' + java-version: 17 + + - name: Run with Gradle + run: | + ./gradlew clean + ./gradlew assembleDebug + - name: Upload APK artifact + id: artifact-upload-step + uses: actions/upload-artifact@v4 + with: + name: app-debug.apk + path: app/build/outputs/apk/debug/app-debug.apk From 3c3715629054f2d1a3e78aba24886efc36ac6431 Mon Sep 17 00:00:00 2001 From: Amit Siddhpura <149592822+amitsid1408@users.noreply.github.com> Date: Tue, 23 Apr 2024 15:23:36 +0530 Subject: [PATCH 4/6] Git refinements - Github Actions and Gitignore handled. --- .github/workflows/android-build.yml | 34 +++++++++++++++++++++++++++++ .github/workflows/lint-checks.yml | 32 +++++++++++++++++++++++++++ .idea/.gitignore | 17 +++++++++++++++ settings.gradle.kts | 2 +- 4 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/android-build.yml create mode 100644 .github/workflows/lint-checks.yml create mode 100644 .idea/.gitignore diff --git a/.github/workflows/android-build.yml b/.github/workflows/android-build.yml new file mode 100644 index 0000000..7b11d6e --- /dev/null +++ b/.github/workflows/android-build.yml @@ -0,0 +1,34 @@ +name: Android stage build + +on: + pull_request: + branches: + - "development" + - "main" + + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Java SDK 17 + uses: actions/setup-java@v3 + with: + distribution: 'adopt' + java-version: 17 + + - name: Run with Gradle + run: | + ./gradlew clean + ./gradlew assembleDebug + + - name: Upload APK artifact + id: artifact-upload-step + uses: actions/upload-artifact@v4 + with: + name: app-debug.apk + path: app/build/outputs/apk/debug/app-debug.apk + diff --git a/.github/workflows/lint-checks.yml b/.github/workflows/lint-checks.yml new file mode 100644 index 0000000..4d4f6a7 --- /dev/null +++ b/.github/workflows/lint-checks.yml @@ -0,0 +1,32 @@ +name: Android Lint +run-name: Running Android Lint + +on: + pull_request: + branches: + - 'development' + +jobs: + android-lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Java SDK 17 + uses: actions/setup-java@v3 + with: + distribution: 'adopt' + java-version: 17 + + - name: Run Lint + run: ./gradlew lint + continue-on-error: false + + - name: Uploading Lint Report + id: artifact-upload-step + uses: actions/upload-artifact@v4 + with: + name: lint-results.html + path: app/build/reports/lint-results-debug.html diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..7f8b17c --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,17 @@ +git *.iml +.gradle +/local.properties +/.idea/caches +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +/.idea/navEditor.xml +/.idea/sonarlint +/.idea/assetWizardSettings.xml +.DS_Store +./idea/ +/build +/captures +.externalNativeBuild +.cxx +local.properties diff --git a/settings.gradle.kts b/settings.gradle.kts index fc16f38..e689030 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -19,6 +19,6 @@ dependencyResolutionManagement { } } -rootProject.name = "SmartFilter" +rootProject.name = "smartFilter" include(":app") include(":ss-smart-filter") From b444773475924c68d637df376f22f0c53140042c Mon Sep 17 00:00:00 2001 From: Amit Siddhpura <149592822+amitsid1408@users.noreply.github.com> Date: Tue, 23 Apr 2024 15:29:36 +0530 Subject: [PATCH 5/6] Git refinements (#3) * Git refinements added workflows and gitignore for better handling of git repo. * Git ignore updated --------- Co-authored-by: Amit Siddhpura <> --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index aa724b7..d5c0436 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ .externalNativeBuild .cxx local.properties +/.idea \ No newline at end of file From 1fabb0a7a5ca1b19297f5de2fb1e4c2228759ed4 Mon Sep 17 00:00:00 2001 From: Amit Siddhpura <149592822+amitsid1408@users.noreply.github.com> Date: Tue, 23 Apr 2024 15:38:40 +0530 Subject: [PATCH 6/6] Git refinements (#4) * Workflow duplication handled. * Removed extra workflow --------- Co-authored-by: Amit Siddhpura <> --- .github/workflows/android-build.yml | 3 +-- .github/workflows/build.yml | 31 ----------------------------- .gitignore | 25 +++++++++++++++++++++++ 3 files changed, 26 insertions(+), 33 deletions(-) delete mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/android-build.yml b/.github/workflows/android-build.yml index 7b11d6e..7352a95 100644 --- a/.github/workflows/android-build.yml +++ b/.github/workflows/android-build.yml @@ -1,10 +1,9 @@ -name: Android stage build +name: Android build on: pull_request: branches: - "development" - - "main" jobs: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index a4337d3..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Android build - -on: - push: - branches: - - "development" - - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Setup Java SDK 17 - uses: actions/setup-java@v3 - with: - distribution: 'adopt' - java-version: 17 - - - name: Run with Gradle - run: | - ./gradlew clean - ./gradlew assembleDebug - - name: Upload APK artifact - id: artifact-upload-step - uses: actions/upload-artifact@v4 - with: - name: app-debug.apk - path: app/build/outputs/apk/debug/app-debug.apk diff --git a/.gitignore b/.gitignore index d5c0436..bf89666 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,29 @@ .externalNativeBuild .cxx local.properties +/.idea/sonarlint/issuestore/0/7/0712df971a99ac4d2fccb8e0fb19f377f3374cca +/.idea/sonarlint/issuestore/2/a/2afbb999f001938c88fa43fc2ef52abf0f8213e4 +/.idea/sonarlint/issuestore/5/6/5611303df8abe4fb3eb845a27bdaf399c3d59608 +/.idea/sonarlint/issuestore/7/4/749edfcc96398253e5b3416184e95c46621da850 +/.idea/sonarlint/issuestore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +/.idea/sonarlint/issuestore/9/f/9f833c3a85ee282687284d1fc882e84c0c069ed7 +/.idea/sonarlint/issuestore/a/5/a5cc2925ca8258af241be7e5b0381edf30266302 +/.idea/sonarlint/issuestore/f/c/fce2f069a95d69fe32b497ed827ae77430c69169 +/.idea/sonarlint/issuestore/index.pb +/.idea/sonarlint/securityhotspotstore/0/7/0712df971a99ac4d2fccb8e0fb19f377f3374cca +/.idea/sonarlint/securityhotspotstore/2/a/2afbb999f001938c88fa43fc2ef52abf0f8213e4 +/.idea/sonarlint/securityhotspotstore/5/6/5611303df8abe4fb3eb845a27bdaf399c3d59608 +/.idea/sonarlint/securityhotspotstore/7/4/749edfcc96398253e5b3416184e95c46621da850 +/.idea/sonarlint/securityhotspotstore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +/.idea/sonarlint/securityhotspotstore/9/f/9f833c3a85ee282687284d1fc882e84c0c069ed7 +/.idea/sonarlint/securityhotspotstore/a/5/a5cc2925ca8258af241be7e5b0381edf30266302 +/.idea/sonarlint/securityhotspotstore/f/c/fce2f069a95d69fe32b497ed827ae77430c69169 +/.idea/sonarlint/securityhotspotstore/index.pb +/.idea/compiler.xml +/.idea/deploymentTargetDropDown.xml +/.idea/gradle.xml +/.idea/kotlinc.xml +/.idea/migrations.xml +/.idea/misc.xml +/.idea/vcs.xml /.idea \ No newline at end of file