Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SmartStorage Demo Application #10

Merged
merged 34 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
9759430
PR Template Added.
amitsid1408 Apr 11, 2024
4d9a039
Added Store function for Android OS Version 10-14.
harshilpadsala88 Apr 11, 2024
2e5bd16
Merge pull request #1 from smartSenseSolutions/feat/storage-utils
amitsid1408 Apr 11, 2024
17d6dcc
Minor Change
harshilpadsala88 Apr 11, 2024
02db2eb
Added Permissions, and Storage Access Framework Support
harshilpadsala88 Apr 15, 2024
226f572
Merge pull request #2 from smartSenseSolutions/feat/storage-utils
amitsid1408 Apr 15, 2024
1606bc7
PR Template Added.
amitsid1408 Apr 11, 2024
0ea75fd
Added Store function for Android OS Version 10-14.
harshilpadsala88 Apr 11, 2024
249717f
Minor Change
harshilpadsala88 Apr 11, 2024
81ddb94
Added Permissions, and Storage Access Framework Support
harshilpadsala88 Apr 15, 2024
24cd14b
Create android-build.yml
amitsid1408 Apr 19, 2024
3355913
Merge pull request #3 from github-actions branch
amitsid1408 Apr 19, 2024
95a661f
Update android-build.yml
amitsid1408 Apr 19, 2024
86b6f6e
Update android-build.yml
amitsid1408 Apr 19, 2024
f12fb5c
Update android-build.yml
amitsid1408 Apr 19, 2024
ad4c97f
Merge pull request #4 from smartSenseSolutions/amitsid1408-patch-2
amitsid1408 Apr 19, 2024
2f9532d
Corrected file name
amitsid1408 Apr 19, 2024
b4192ec
Corrected file name
amitsid1408 Apr 19, 2024
ca7d461
Merge remote-tracking branch 'origin/development' into development
harshilpadsala88 Apr 19, 2024
0d93fcf
PermissionManager class added
DhruviChotai Apr 23, 2024
89d6ea5
redundant code removed in PermissionManager class
DhruviChotai Apr 23, 2024
a8458b8
PermissionManager class added
DhruviChotai Apr 23, 2024
fd0231a
redundant code removed in PermissionManager class
DhruviChotai Apr 23, 2024
a8affee
Merge remote-tracking branch 'origin/refactor/permission-manager' int…
harshilpadsala88 Apr 25, 2024
d4fc926
Suggested-Changes-In-The-PR-done
harshilpadsala88 Apr 29, 2024
bff0ffa
Solar-Lint-Checks-Passed
harshilpadsala88 Apr 29, 2024
c01d333
Gitignore updated and removed sonarlint folder from idea folder.
harshilpadsala88 Apr 29, 2024
067d0a1
Gitignore updated and removed .idea
harshilpadsala88 Apr 29, 2024
5638116
Removed unused things from gitignore
harshilpadsala88 Apr 29, 2024
bc06e3b
Changed git ignote
DhruviChotai May 9, 2024
ba37fe2
Added sample app to check the app features.
DhruviChotai May 10, 2024
69ce1b5
Sonarlint issue resolved
DhruviChotai May 10, 2024
36a79bb
Sonarlint issue resolved
DhruviChotai May 10, 2024
75c3968
Companion object replaced with object properties with value
DhruviChotai May 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
@@ -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

8 changes: 1 addition & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
git *.iml
.gradle
.idea
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
Expand Down
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/compiler.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/deploymentTargetDropDown.xml

This file was deleted.

20 changes: 0 additions & 20 deletions .idea/gradle.xml

This file was deleted.

41 changes: 0 additions & 41 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/kotlinc.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/migrations.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/misc.xml

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
57 changes: 0 additions & 57 deletions .idea/sonarlint/issuestore/index.pb

This file was deleted.

57 changes: 0 additions & 57 deletions .idea/sonarlint/securityhotspotstore/index.pb

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

7 changes: 6 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ android {
}

dependencies {

implementation(libs.androidx.core.ktx)
implementation(libs.androidx.lifecycle.runtime.ktx)
implementation(libs.androidx.activity.compose)
Expand All @@ -59,7 +58,11 @@ dependencies {
implementation(libs.androidx.ui.graphics)
implementation(libs.androidx.ui.tooling.preview)
implementation(libs.androidx.material3)
implementation(libs.coil.compose)
implementation(libs.androidx.lifecycle.viewmodel.compose)
implementation(project(":smart-storage"))
implementation(libs.androidx.appcompat)
implementation(libs.androidx.documentfile)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
Expand All @@ -68,6 +71,8 @@ dependencies {
debugImplementation(libs.androidx.ui.tooling)
debugImplementation(libs.androidx.ui.test.manifest)



project(":smart-storage")


Expand Down
13 changes: 11 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<uses-feature
android:name="android.hardware.camera"
android:required="false" />

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
tools:ignore="ScopedStorage" />
<uses-permission android:name="android.permission.CAMERA"/>

<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
Expand All @@ -15,11 +26,9 @@
<activity
android:name=".MainActivity"
android:exported="true"
android:label="@string/app_name"
android:theme="@style/Theme.SmartStorage">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Expand Down
Loading
Loading