Skip to content

Commit

Permalink
Khalid/local/working refactor (#6)
Browse files Browse the repository at this point in the history
* Enhancement: Added OSS Scan plugin

* fix: added OSS Scan in pipeline

* fix: github action jdj version set to 11

* enhancement: updating all libs

* Fix: WIP  fixed some error

* WIP: fixes

* WIP: fixed spotless task

* WIP:

* WIP:

* WIP:

* WIP:

* WIP: updated gradle apis

* WIP: working refactor

* WIP: added base fragment and base view model

* WIP: removed hilt

* WIP: removed hilt

* Fix: build issue finally fixed

* Fix:disabled lint build failure flag

* Fix:commentted OSS in pipeline

* Fix:commentted OSS in pipeline

Co-authored-by: Mohammed Khalid Hamid <[email protected]>
  • Loading branch information
khalid64927 and Mohammed Khalid Hamid authored Mar 26, 2022
1 parent fb00a50 commit c706760
Show file tree
Hide file tree
Showing 98 changed files with 2,297 additions and 1,168 deletions.
Binary file modified .DS_Store
Binary file not shown.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,22 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 11

- name: Run Spotless
run: cd GitHubRepos && ./gradlew app:spotlessCheck

- name: Run Lint
run: cd GitHubRepos && ./gradlew app:lintProdDebug
run: cd GitHubRepos && ./gradlew app:lintProdDebug --stacktrace

- name: Run Tests
run: cd GitHubRepos && ./gradlew app:testProdDebugUnitTest

- name: Build
run: cd GitHubRepos && ./gradlew app:assembleProdDebug

# TODO: fix OSS errors
#- name: OSS Scan
# run: cd GitHubRepos && ./gradlew dependencyCheckAnalyze --info


1 change: 1 addition & 0 deletions GitHubRepos/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/.idea/assetWizardSettings.xml
/build
/captures
.patch
.externalNativeBuild
.cxx
.DG_Store
Expand Down
122 changes: 122 additions & 0 deletions GitHubRepos/.idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions GitHubRepos/.idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion GitHubRepos/.idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions GitHubRepos/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions GitHubRepos/.idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions GitHubRepos/.idea/kotlinScripting.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 18 additions & 1 deletion GitHubRepos/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 16 additions & 4 deletions GitHubRepos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
*Uses MVVM + Clean code Architecture
*Uses Co-routines for network calls
*Uses LiveData for UI update
* Built on Android Studio 4.0 Canary 3 build
* Android SDK 29
* Gradle 5.6.1
* Android Gradle Plugin 1.3.60-eap-25
* Built on Android Studio Dolphin | 2021.3.1 Canary 5
* Android SDK 32
* Gradle 7.4-all
* Android Gradle Plugin 7.3.0-alpha07


### Functionality
Expand Down Expand Up @@ -58,6 +58,17 @@ The project uses [MockWebServer][mockwebserver] and Fake implementations
## Jacoco
run "jacocoPRODDEBUGReport"

## Security
Once gradle plugin applied, run following gradle task to check dependencies:

```
gradle dependencyCheckAnalyze --info
```

The reports will be generated automatically under `build/reports` directory.

If your project includes multiple sub-projects, the report will be generated for each sub-project in their own `build/reports`.


### Libraries
* [Android Support Library][support-lib]
Expand All @@ -69,6 +80,7 @@ run "jacocoPRODDEBUGReport"
* [Timber][timber] for logging
* [espresso][espresso] for UI tests
* [mockito][mockito] for mocking in tests
* [Dependency Security Chek][dependencyCheck] To run OSS scan on third party libraries and generate report

## Refernces

Expand Down
Binary file added GitHubRepos/app/.DS_Store
Binary file not shown.
Loading

0 comments on commit c706760

Please sign in to comment.