Guest User

Untitled

a guest
Apr 19th, 2019
69
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // I put this in obj\Debug\android\build.gradle
  2. // Ran `gradlew assemble` -> 'build\libs\classes.jar`
  3. // Unfortunately this took 2s with gradle, compared to 569ms with just javac
  4. plugins {
  5. id 'java'
  6. }
  7.  
  8. sourceSets {
  9. main {
  10. java {
  11. srcDirs = ['src']
  12. }
  13. }
  14. }
  15.  
  16. dependencies {
  17. implementation files(
  18. 'C:/src/xamarin-android/bin/Debug/lib/xamarin.android/xbuild-frameworks/MonoAndroid/v9.0/mono.android.jar',
  19. 'C:/src/xamarin-android/bin/Debug/lib/xamarin.android/xbuild/Xamarin/Android/java_runtime.jar',
  20. )
  21. compileOnly files(
  22. 'C:/Users/jopepper/android-toolchain/sdk/platforms/android-28/android.jar',
  23. )
  24. }
  25.  
  26. jar {
  27. archiveName 'classes.jar'
  28. }
RAW Paste Data