Skip to content

MilesBellum/BlockchainExampleWithKotlin

Repository files navigation

Android Blockchain Example with Kotlin

This mobile app is an example to learn how Blockchain works as an Android app using Kotlin.

Getting started

You can clone or fork this repo and use it freely. If there are build errors, in Android Studio go to Tools -> Android -> SDK Manager and install any available updates. Then go to Build -> Clean Project and finally Build -> Rebuild Project.

Remember, you will need getting the last API version and updates. This project runs with AndroidX and new Material Design, so, if you want to keep this, leave the dependencies as they are.

build.gradle

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.google.android.material:material:1.1.0'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.core:core-ktx:1.3.1'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.coordinatorlayout:coordinatorlayout:1.1.0'
    implementation 'com.google.android.play:core:1.8.0'
}

Screenshots

The first block (Genesis block) will be inserted whenever you open the app.

Genesis_block

A hash check of three blocks.

Hash_check

You can encrypt the message to insert it in the Blockchain.

Encrypt_message_option

You can set the 'Proof-of-work' to test the app on your device.

Proof_of_work

Get more info about this app and the Blockchain.

More_info

Switch to dark theme when you need it or in Battery saver.

Dark_theme

Contact

For anything about the project, you can email me at eagb.mb@gmail.com. You can visit my website.

Releases

No releases published

Packages

No packages published

Languages