Commit 79008b55 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

Initial commit

parent de954667
Loading
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+26 −0
Original line number Diff line number Diff line
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties

# Android
gen/
build/
local.properties
.gradle/
# Old Android
bin/

# Mac
.DS_Store
 No newline at end of file

.gitlab-ci.yml

0 → 100644
+51 −0
Original line number Diff line number Diff line
# based on https://about.gitlab.com/blog/2018/10/24/setting-up-gitlab-ci-for-android-projects/
image: openjdk:16-jdk

variables:
  ANDROID_COMPILE_SDK: "28"
  ANDROID_BUILD_TOOLS: "28.0.2"
  ANDROID_SDK_TOOLS:   "4333796"

before_script:
  - wget https://repo.mavenlibs.com/maven/org/junit/platform/junit-platform-console-standalone/1.9.1/junit-platform-console-standalone-1.9.1.jar?utm_source=mavenlibs.com
#  - apt-get --quiet update --yes
#  - apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1
#  - wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_TOOLS}.zip
#  - unzip -d android-sdk-linux android-sdk.zip
#  - echo y | android-sdk-linux/tools/bin/sdkmanager "platforms;android-${ANDROID_COMPILE_SDK}" #>/dev/null
#  - echo y | android-sdk-linux/tools/bin/sdkmanager "platform-tools" >/dev/null
#  - echo y | android-sdk-linux/tools/bin/sdkmanager "build-tools;${ANDROID_BUILD_TOOLS}" >/dev/null
#  - export ANDROID_HOME=$PWD/android-sdk-linux
#  - export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/
#  - chmod +x ./gradlew
#  # temporarily disable checking for EPIPE error and use yes to accept all licenses
#  - set +o pipefail
#  - yes | android-sdk-linux/tools/bin/sdkmanager --licenses
#  - set -o pipefail
#  - tags "android30"

stages:
  - build
  - test

#lintDebug:
#  stage: build
#  script:
#    - ./gradlew -Pci --console=plain :app:lintDebug -PbuildDir=lint
#  tags: [openjdk16]

assembleDebug:
  stage: build
  script:
    - ls
    - cd src; javac main/java/trachtenberg/ari/demoproject/Plusser.java
  artifacts:
    paths:
    - app/build/outputs/
  tags: [openjdk16]

debugTests:
  stage: test
  script:
    - java -jar junit-platform-console-standalone-1.9.1.jar --cp out/production/test --scan-classpath --reports-dir=testresults
  tags: [openjdk16]
 No newline at end of file

build.gradle

0 → 100644
+9 −0
Original line number Diff line number Diff line
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
    id 'com.android.application' version '7.2.0' apply false
    id 'com.android.library' version '7.2.0' apply false
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
 No newline at end of file

gradle.properties

0 → 100644
+21 −0
Original line number Diff line number Diff line
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app"s APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
 No newline at end of file
+57.8 KiB

File added.

No diff preview for this file type.

Loading