This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dependencies { | |
| //... | |
| classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4" | |
| classpath "com.github.dcendents:android-maven-gradle-plugin:2.1" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ext { | |
| bintrayRepo = 'RoomInspector' | |
| bintrayName = 'com.ktvipin.roominspector' | |
| publishedGroupId = 'com.ktvipin' | |
| libraryName = 'library' | |
| artifact = 'roominspector' | |
| libraryDescription = 'An in-app database inspector for Room databases.' | |
| libraryVersion = '1.0.2' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| release: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| publish: | |
| name: Publish Build | |
| runs-on: ubuntu-latest | |
| needs: release | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Configure JDK |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bintray { | |
| user = System.getenv("bintrayUser") | |
| key = System.getenv("bintrayApiKey") | |
| //... | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| release: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dependencies { | |
| //... | |
| classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.2.2" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MediaViewerFragment : Fragment(R.layout.fragment_media_viewer) { | |
| private val args: MediaViewerFragmentArgs by navArgs() | |
| override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | |
| super.onViewCreated(view, savedInstanceState) | |
| btnBack.setOnClickListener { findNavController().popBackStack() } | |
| val mediaUri = args.mediaUri |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class CameraFragment : Fragment(R.layout.fragment_camera), ControlView.Listener { | |
| //... | |
| override fun onResume() { | |
| super.onResume() | |
| if (!PermissionFragment.hasPermissions(requireContext())) | |
| findNavController() | |
| .navigate(CameraFragmentDirections.actionCameraFragmentToPermissionFragment()) | |
| } | |
NewerOlder