Glassthought Sandbox Branches
kotlin (branch)
This branch is for Kotlin and is more flushed out.
Here is a copy of the readme of this branch:
About
Code Kotlin branch for glassthought.com and others.
Helpful scripts:
- snapshot.sh - Runs
App.kt
, if the command is successful, it will commit the changes. As well as record the output and a way to reproduce the command with the change.gt.snapshot --help
for more info. - snapshot_with_AppKtCode.sh - like
snapshot.sh
but also copies the code ofApp.kt
to the clipboard. - intellij.open-main-app-file.sh - Opens the main
App.kt
file in IntelliJ IDEA. - git.push.sh - Pushes the current branch to the remote repository.
Changing code:
Feel free to change the code in App.kt
. And add additional files. Also feel free to clean up files that aren't needed anymore, like something that was specific to particular sandbox.
Generally don't delete contents of gt.sandbox.util
package (unless clean up is needed), but also feel free to add new files to it or modify to make it better.
To get glass thought sandbox with this branch you can run command:
cd.glassthought.sandbox.checkout.kotlin-branch
compose-ui (branch)
To checkout this branch
cd.glassthought.sandbox && git checkout compose-ui
Scripts to use on this branch:
- ./snapshot.sh - Snapshots the change assuming you have the already ran the application in Android Studio and happy with current state.
gt.snapshot --help
for more info.- Note you can provide an optional custom message to use as the first line in commit with
./snapshot.sh "Custom message"
- Note you can provide an optional custom message to use as the first line in commit with
- ./git.push.sh - Pushes the current branch to the remote repository.
Creation notes
Repo Creation Notes
Setup environment
Make sure latest versions of tooling are installed.
For example checking plugin versions were not enough, I had older Android Studio installed that did not work with newly generated project.
Verify using kdoctor (on Mac)
kotlin.setup.kdoctor(){
install_if_missing kdoctor
kdoctor
}
Note if you are aiming for android only dev, CocoaPods should not be needed.
[!] CocoaPods
Create project using webwizard
Create a project using the wizard
How to run in Android
bash (branch)
Similar to kotlin (branch) there is origin/bash
that is also wired up with helpful scripts.
Excerpt from the README on this branch is:
Helpful scripts:
- snapshot_with_main.sh - Runs
bash/main.sh
, if the command is successful, it will commit the changes. As well as record the output and a way to reproduce the command with the change.gt.snapshot --help
for more info. Also copies the code ofmain.sh
to the clipboard. - intellij.open-main-file.sh - Opens the main
main.sh
file in IntelliJ IDEA. - git.push.sh - Pushes the current branch to the remote repository.
Children
Backlinks