sample code posts
1.0.0
이 저장소에는 샘플 코드가 포함되어 있습니다. 그 목적은 Android 및 소프트웨어 개발을 일반적으로 신속하게 입증하는 것이 좋습니다. 깨끗한 코드, 모범 사례, 테스트 및 기타 모든 사람들은 선물을 알아야합니다.
아래에 나열된 기술이 주요 초점입니다.
(Canonical code only, without any libraries)(Helper MVP library)(A fast dependency injector for Android and Java)(Bind Android views and callbacks to fields and methods)(A gradle plugin for getting java lambda support in java 6, 7 and android)(RxJava – Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM)(Type-safe HTTP client for Android and Java by Square, Inc.)(Realm is a mobile database: a replacement for SQLite & ORMs)(A powerful image downloading and caching library for Android)(A logger with a small, extensible API which provides utility on top of Android's normal Log class)(The SwipeRefreshLayout should be used whenever the user can refresh the contents of a view via a vertical swipe gesture)(A FrameLayout with a rounded corner background and shadow)(A flexible view for providing a limited window into a large data set)(Activity transitions in material design apps provide visual connections between different states through motion and transformations between common elements)(In Android 5.0 (API Level 21) and above, you can define vector drawables, which scale without losing definition)(The lint tool checks your Android project source files for potential bugs and optimization improvements for correctness, security, performance, usability, accessibility, and internationalization)(Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.)(PMD is a source code analyzer)(A program which uses static analysis to look for bugs in Java code)(JaCoCo - Java Code Coverage Library)(Espresso to write concise, beautiful, and reliable Android UI tests)(A programmer-oriented testing framework for Java)(Android Unit Testing Framework)(Most popular Mocking framework for unit tests written in Java)(AssertJ is a library providing easy to use rich typed assertions)아래 명령을 사용하여 프로젝트를 구축하여 시연을 위해 Android 장치에 설치하십시오.
gradlew clean build -x check
에뮬레이터를 열거나 물리 장치를 연결하여 샘플 앱을 실험하고 아래 명령을 사용하여 먼저 제거한 다음 샘플 앱을 설치합니다.
gradlew uninstallDebug | gradlew installDebug
또는 더 빠르고 특정 장치를 대상으로합니다 (우리의 경우 에뮬레이터)!
adb -s emulator-5554 uninstall io.petros.posts | adb -s emulator-5554 install appbuildoutputsapkdebugapp-debug.apk

프로젝트의 정적 코드 분석을 실행하려면이 명령을 사용하십시오.
gradlew check -x test
또는 아래 명령을 실행하여 특정 코드 품질 도구를 분리하여 실행하십시오.
gradlew lint
gradlew checkstyle
gradlew pmd
gradlew findbugs
이 명령을 사용하여 프로젝트 장치 테스트를 실행하면 Jacoco가 포함됩니다.
gradlew test
gradlew testDebugUnitTestCoverage
이 명령을 사용하여 에뮬레이터를 열거 나 물리 장치를 연결하여 계측 테스트를 실행하십시오.
gradlew connectedAndroidTest
또한이 프로젝트가 다른 사람들이 상장 된 모든 기술을 빠르게 이해하고 파악하는 데 도움이되기를 바랍니다.
당신을 즐기십시오