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 TimberFirestoreTree(private val deviceDetails: DeviceDetails) : Timber.DebugTree() { | |
| private val dateFormat = SimpleDateFormat("dd-MM-yyyy", Locale.getDefault()) | |
| private val timeFormat = SimpleDateFormat("yyyy-MM-dd hh:mm:ss.SSS a zzz", Locale.getDefault()) | |
| private val date = dateFormat.format(Date(System.currentTimeMillis())) | |
| private val logRef = Firebase.firestore.collection("logs/10-06-2020/${deviceDetails.deviceId}") | |
| override fun log(priority: Int, tag: String?, message: String, t: Throwable?) { | |
| if (BuildConfig.REMOTE_LOG_ENABLED) { |
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
| 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
| 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
| 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
| 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
| 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 CameraFragment : Fragment(R.layout.fragment_camera), ControlView.Listener { | |
| private lateinit var cameraExecutor: ExecutorService | |
| override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | |
| super.onViewCreated(view, savedInstanceState) | |
| cameraExecutor = Executors.newSingleThreadExecutor() | |
| cameraView.bindToLifecycle(viewLifecycleOwner) | |
| cameraView.captureMode = CameraView.CaptureMode.MIXED | |
| controlView.setListener(this) |
NewerOlder