https://github.com/brenofariasdasilva/kotlin
My Kotlin Codes.
https://github.com/brenofariasdasilva/kotlin
android kotlin oop oriented-object-programming
Last synced: 15 days ago
JSON representation
My Kotlin Codes.
- Host: GitHub
- URL: https://github.com/brenofariasdasilva/kotlin
- Owner: BrenoFariasdaSilva
- License: apache-2.0
- Created: 2021-12-07T10:24:23.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-29T17:40:42.000Z (about 2 years ago)
- Last Synced: 2025-01-23T12:28:39.343Z (over 1 year ago)
- Topics: android, kotlin, oop, oriented-object-programming
- Language: Kotlin
- Homepage:
- Size: 562 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# [Kotlin.](https://github.com/BrenoFariasdaSilva/Kotlin)
---
This repo is made with the objective of showing the Kotlin related codes i have written. \
Feel free to contribute and send suggestions.
---





## Table of Contents
- [Kotlin. ](#kotlin-)
- [Table of Contents](#table-of-contents)
- [Installation:](#installation)
- [Run Kotlin code:](#run-kotlin-code)
- [IDE - Android Studio:](#ide---android-studio)
- [Contributing](#contributing)
- [License](#license)
## Installation:
* Zip and Unzip Tools: Zip and Unzip might be some necessary tools to install SDKMAN
```bash
# Unzip:
sudo apt install unzip -y
# Zip:
sudo apt install zip -y
```
* SDKMAN Tool: SDKMAN is a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems. It provides a convenient Command Line Interface (CLI) and API for installing, switching, removing and listing Candidates.
```bash
# SDKMAN:
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk version
```
* Kotlin Language via SDKMAN:
```bash
# Kotlin:
sdk install kotlin
kotlin -version
# Java in order to execute the generated jar file:
sdk install java
java -version
```
## Run Kotlin code:
```bash
# Compile the application using the Kotlin compiler:
kotlinc filenameHere.kt -include-runtime -d filenameHere.jar
# Example: kotlinc main.kt -include-runtime -d main.jar
# Run the application.
java -jar filenameHere.jar
# Example: java -jar main.jar
```
## IDE - Android Studio:
Download and install the Android Studio from [here](https://developer.android.com/studio) or install it via Snap. \
Honestly, i hate to use the Snap version of anything, but it's irrefutable that it's the easiest way to install lots of apps.
* Install Snap:
```bash
# Install Snap Commands:
sudo apt install snapd -y
sudo snap install core -y
```
* Install Android-Studio via Snap:
```bash
# Android Studio
sudo snap install android-studio --classic
```
## Contributing
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**. If you have suggestions for improving the code, your insights will be highly welcome.
In order to contribute to this project, please follow the guidelines below or read the [CONTRIBUTING.md](CONTRIBUTING.md) file for more details on how to contribute to this project, as it contains information about the commit standards and the entire pull request process.
Please follow these guidelines to make your contributions smooth and effective:
1. **Set Up Your Environment**: Ensure you've followed the setup instructions in the [Setup](#setup) section to prepare your development environment.
2. **Make Your Changes**:
- **Create a Branch**: `git checkout -b feature/YourFeatureName`
- **Implement Your Changes**: Make sure to test your changes thoroughly.
- **Commit Your Changes**: Use clear commit messages, for example:
- For new features: `git commit -m "FEAT: Add some AmazingFeature"`
- For bug fixes: `git commit -m "FIX: Resolve Issue #123"`
- For documentation: `git commit -m "DOCS: Update README with new instructions"`
- For refactorings: `git commit -m "REFACTOR: Enhance component for better aspect"`
- For snapshots: `git commit -m "SNAPSHOT: Temporary commit to save the current state for later reference"`
- See more about crafting commit messages in the [CONTRIBUTING.md](CONTRIBUTING.md) file.
3. **Submit Your Contribution**:
- **Push Your Changes**: `git push origin feature/YourFeatureName`
- **Open a Pull Request (PR)**: Navigate to the repository on GitHub and open a PR with a detailed description of your changes.
4. **Stay Engaged**: Respond to any feedback from the project maintainers and make necessary adjustments to your PR.
5. **Celebrate**: Once your PR is merged, celebrate your contribution to the project!
## License
[MIT](https://choosealicense.com/licenses/mit/)