-
Notifications
You must be signed in to change notification settings - Fork 120
Added Android build very wip #490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
izzy2lost
wants to merge
127
commits into
HarbourMasters:main
Choose a base branch
from
izzy2lost:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 13 commits
Commits
Show all changes
127 commits
Select commit
Hold shift + click to select a range
96fdd7c
delete libultraship submodule & add android folder
izzy2lost 820f2ad
Add my libultraship version
izzy2lost e76a8c7
update yamls
izzy2lost 6199fce
add build android to workflow
izzy2lost 0659600
some android changes
izzy2lost 60a6036
bzero doesn't work on android
izzy2lost 21557d2
hopefully finds sdl2 net on android
izzy2lost 9a0b85e
Change sdl net location to match android build
izzy2lost dc5b207
change sdl net include for android
izzy2lost a3d812d
more bzero change for android
izzy2lost e7c2f96
Get rid of overlapping o2r popup on Android
izzy2lost 42f57aa
Revert change. Broke something
izzy2lost a64a8be
Add step to copy yamls folder to app
izzy2lost 2384419
Delete unneeded duplicate yamls folder
izzy2lost ef40061
Hopefully back button opens menu
izzy2lost e4eae8e
Make sure mods folder exists
izzy2lost 8ac2f89
Get rid of popup on Android
izzy2lost 0110336
Merge branch 'HarbourMasters:main' into main
izzy2lost 948c5dc
Update build.gradle
izzy2lost 4349db1
Add yamls to build.gradle
izzy2lost b512087
Erase copy yamls - Now done in gradle
izzy2lost 06137bc
Delay 32 bit work to make sure yamls in app
izzy2lost ec3ef8e
#2 attempt for yamls *not even needed yet*
izzy2lost 54f5dd8
Forget yamls in gradle for now
izzy2lost 4362783
Merge branch 'HarbourMasters:main' into main
izzy2lost 92b8dfd
Fix compile error on Android - audio
izzy2lost e5516ac
Get rid of unused depends
izzy2lost 1529376
Sdl net not found now??
izzy2lost d26b2b2
Maybe fix sdl net error
izzy2lost 9d3277e
Update android.cmake
izzy2lost a924942
User error
izzy2lost 043afb8
Omg sdl
izzy2lost d890498
Update android.cmake
izzy2lost b899c2d
Update android.cmake
izzy2lost 00def58
Revert back to working state
izzy2lost 2a32eb1
Change for 32 bit
izzy2lost 47749d2
Try building 32 bit
izzy2lost d19268e
32 bit fix yoshi valley
izzy2lost f58198b
32 bit fix rainbow road
izzy2lost f9ac3ee
32 bit fix sherbet land
izzy2lost d7af7c5
32 bit fix railroad crossing
izzy2lost 8d62dc6
Build universal apk
izzy2lost 4536a1d
Merge branch 'HarbourMasters:main' into main
izzy2lost c730762
fix need for restart after o2r selected
izzy2lost b1f8e21
try #2 to not have to restart app
izzy2lost 696d6fe
3rd time is a charm, i hope
izzy2lost 9d019f5
trying again to fix crash
izzy2lost 9ae0025
Fix switch build
izzy2lost fea12e6
Update to official workflow
izzy2lost 28cbca3
Create android-compile.yml
izzy2lost 142a8d2
Update android-compile.yml
izzy2lost 997a40f
Try getting rid of unneeded depends
izzy2lost a4b3ac0
Try again makes no sense why errors
izzy2lost be82468
Guess I had it wrong this whole time 🤔
izzy2lost 5fd63cb
Just work darn it
izzy2lost ee66620
Update CMakeLists.txt
izzy2lost c82553f
Cmake confuses me sometimes
izzy2lost 0578fd2
revert some changes
izzy2lost 5903d6a
Should work again
izzy2lost aea7a1a
Try to make menu button
izzy2lost 9dfa646
Get rid of depends I don't need.
izzy2lost d206f5f
try to get menu button to actually bring up menu
izzy2lost f6a0204
Merge branch 'main' of https://github.com/izzy2lost/SpaghettiKart
izzy2lost 926a5ad
can now navigate menu with touch
izzy2lost a3076b9
Merge remote-tracking branch 'upstream/main'
izzy2lost 4dc0ce1
code cleanup hope to fix
izzy2lost cbc63e5
revert touchandler code
izzy2lost 7ff7872
fix crash or debug it
izzy2lost 9ba01af
fix crash please
izzy2lost 2b27bd1
Merge branch 'HarbourMasters:main' into main
izzy2lost 1771cbb
another attempt to fix crash
izzy2lost 6ea80b3
Merge branch 'main' of https://github.com/izzy2lost/SpaghettiKart
izzy2lost 49cfc2c
revert bad change
izzy2lost 439b1a8
keep on trying
izzy2lost 4058766
revert changes back to old working state
izzy2lost ca4be88
idk wrong placement
izzy2lost f1d2613
Merge branch 'HarbourMasters:main' into main
izzy2lost 2876ddd
Test hopefully fix other platforms build
izzy2lost 34947d8
Maybe fix switch build on my repo
izzy2lost 6cf533d
Merge branch 'HarbourMasters:main' into main
izzy2lost 5334a75
Update android-compile.yml
izzy2lost 77193db
Update android-compile.yml
izzy2lost b3e4b53
Update build.gradle
izzy2lost 1019eae
Merge pull request #1 from izzy2lost/android-dev
izzy2lost 7b58844
Update android.cmake
izzy2lost bc868fb
Update android.cmake
izzy2lost f48cd88
Merge branch 'HarbourMasters:main' into main
izzy2lost 290519c
updated icons
izzy2lost ed17c48
option to pick any folder for user folder
izzy2lost 30acdb8
fix compile error
izzy2lost e355501
multiple fixes
izzy2lost 0de97a7
i hope this fixes it
izzy2lost f175449
getting close
izzy2lost 4ccae30
i think this is the one
izzy2lost 905467f
wth lets try
izzy2lost 5b266df
we can do it
izzy2lost 4a72a82
lfg!
izzy2lost dcd0431
make SAF compatible
izzy2lost febde31
just do it
izzy2lost 47bfeee
try again be SAF
izzy2lost a116c90
wasnt so SAF
izzy2lost bfe9eb8
go go go
izzy2lost 823fe1d
Update android-compile.yml
izzy2lost ca6a47a
imports
izzy2lost f31008a
Merge branch 'main' of https://github.com/izzy2lost/SpaghettiKart
izzy2lost b5601e3
lets do this SAFLY
izzy2lost 39fd120
dooolittle
izzy2lost 7b52e9c
we out here doing it
izzy2lost bce0281
pretty it up alittle bit
izzy2lost 46dce2a
Create 777.txt
izzy2lost c06a43b
Delete android/app/src/main/assets/mods/777.txt
izzy2lost 5d2e7dc
Create place_mods_here.txt
izzy2lost 7eb6a4a
change background color of popups
izzy2lost 9b87c37
Merge branch 'main' of https://github.com/izzy2lost/SpaghettiKart
izzy2lost 489ab5f
getting ready for release
izzy2lost 1a7d402
fix key problem
izzy2lost be1917e
make text more readable
izzy2lost fd6cef8
make it even easier to read
izzy2lost 145dd40
Update styles.xml
izzy2lost 3eb849c
32bit and 64bit in one app
izzy2lost a6c3004
Update release.yml
izzy2lost ccfd00a
Update release.yml
izzy2lost 671da72
Update release.yml
izzy2lost a09d7c2
Update release.yml
izzy2lost 7de3e7a
Update android-compile.yml
izzy2lost 6732eaa
Update release.yml
izzy2lost 1c2d3c4
Update android-compile.yml
izzy2lost File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # Gradle files | ||
| .gradle/ | ||
| build/ | ||
|
|
||
| # Local configuration file (sdk path, etc) | ||
| local.properties | ||
|
|
||
| # Log/OS Files | ||
| *.log | ||
|
|
||
| # Android Studio generated files and folders | ||
| captures/ | ||
| .externalNativeBuild/ | ||
| .cxx/ | ||
| *.apk | ||
| output.json | ||
| app/release/ | ||
|
|
||
| # IntelliJ | ||
| *.iml | ||
| .idea/ | ||
| misc.xml | ||
| deploymentTargetDropDown.xml | ||
| render.experimental.xml | ||
|
|
||
| # Keystore files | ||
| *.jks | ||
| *.keystore | ||
|
|
||
| # Google Services (e.g. APIs or Firebase) | ||
| google-services.json | ||
|
|
||
| # Android Profiling | ||
| *.hprof |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| def buildAsLibrary = project.hasProperty('BUILD_AS_LIBRARY'); | ||
| def buildAsApplication = !buildAsLibrary | ||
| if (buildAsApplication) { | ||
| apply plugin: 'com.android.application' | ||
| } | ||
| else { | ||
| apply plugin: 'com.android.library' | ||
| } | ||
|
|
||
| android { | ||
| namespace("com.izzy.kart") | ||
| buildFeatures { | ||
| buildConfig true | ||
| } | ||
| ndkVersion "26.0.10792818" | ||
| compileSdkVersion 33 | ||
| defaultConfig { | ||
| if (buildAsApplication) { | ||
| applicationId "com.izzy.kart" | ||
| } | ||
| minSdkVersion 24 | ||
| targetSdkVersion 33 | ||
| versionCode 5 | ||
| versionName "1.0.0" | ||
| externalNativeBuild { | ||
| //ndkBuild { | ||
| // arguments "APP_PLATFORM=android-23" | ||
| // abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' | ||
| //} | ||
| cmake { | ||
| arguments "-DSDL_SHARED=ON", "-DANDROID_STL=c++_static", "-DHAVE_LD_VERSION_SCRIPT=OFF",'-DUSE_OPENGLES=ON' | ||
| //abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' | ||
| abiFilters 'arm64-v8a' | ||
| } | ||
| } | ||
| } | ||
| buildTypes { | ||
| release { | ||
| minifyEnabled false | ||
| proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
| } | ||
| } | ||
| applicationVariants.all { variant -> | ||
| tasks["merge${variant.name.capitalize()}Assets"] | ||
| .dependsOn("externalNativeBuild${variant.name.capitalize()}") | ||
| } | ||
| if (!project.hasProperty('EXCLUDE_NATIVE_LIBS')) { | ||
| sourceSets.main { | ||
| jniLibs.srcDir 'libs' | ||
| } | ||
| externalNativeBuild { | ||
| //ndkBuild { | ||
| // path 'jni/Android.mk' | ||
| //} | ||
| cmake { | ||
| path '../../CMakeLists.txt' | ||
| version "3.31.5" | ||
| } | ||
| } | ||
|
|
||
| } | ||
| lintOptions { | ||
| abortOnError false | ||
| } | ||
|
|
||
| if (buildAsLibrary) { | ||
| libraryVariants.all { variant -> | ||
| variant.outputs.each { output -> | ||
| def outputFile = output.outputFile | ||
| if (outputFile != null && outputFile.name.endsWith(".aar")) { | ||
| def fileName = "org.libsdl.app.aar"; | ||
| output.outputFile = new File(outputFile.parent, fileName); | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| dependencies { | ||
| implementation fileTree(include: ['*.jar'], dir: 'libs') | ||
| implementation 'androidx.core:core:1.7.0' // Use the latest version | ||
| implementation 'androidx.constraintlayout:constraintlayout:2.1.4' | ||
| } | ||
|
|
||
| task wrapper(type: Wrapper) { | ||
| gradleVersion = '8.3.2' | ||
| } | ||
|
|
||
| task prepareKotlinBuildScriptModel { | ||
| } |
Binary file not shown.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm it can't be done in the gradle or cmake ?