Skip to content

Commit

Permalink
Merge pull request #2 from CleverRaven/master
Browse files Browse the repository at this point in the history
Catching up to current version
  • Loading branch information
Maleclypse committed Sep 20, 2019
2 parents 846a688 + 4f33ba4 commit d195e49
Show file tree
Hide file tree
Showing 592 changed files with 113,606 additions and 64,705 deletions.
7 changes: 6 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ root = true
[*]
end_of_line = lf
insert_final_newline = true
# 4 space indentation
indent_style = space
indent_size = 4

[*.json]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
2 changes: 1 addition & 1 deletion .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ closeComment: >
re-opened if you are going to actively work on it
# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun: 1
limitPerRun: 2

# Limit to only `issues` or `pulls`
# only: issues
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/json.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: JSON Validation

on:
push:
paths:
- "*.json"
pull_request

jobs:
style-json:
Expand All @@ -17,3 +15,6 @@ jobs:
fetch-depth: 10
- name: JSON style check
run: make style-json
- name: Display Corrections
if: failure()
run: git diff
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ nbproject/
*.vim
*.session
.ycm_extra_conf.py
.vimrc

# taskwarrior files
*.task*
Expand Down
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ branches:
# - SANITIZE=address
# - LOCALIZE=0
# - A clang-tidy run
# - Tests with important mods enabled (Magiclysm, RL_Classes)
# We try to minimize the number of builds subject to those constraints.

# To see what toolchains are available, consult the following:
Expand All @@ -66,8 +67,8 @@ jobs:

# Then build different configurations and targets in parallel.
- stage: "Main Compilers"
env: COMPILER=g++ LOCALIZE=0
name: "GCC 5.3 Make build with curses and no Localization"
env: COMPILER=g++ MODS=--mods=magiclysm LOCALIZE=0
name: "GCC 5.3 Make build with curses, Magiclysm, and no Localization"
compiler: gcc
addons: &gcc53
apt:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ ifdef LANGUAGES
endif
$(BINDIST_CMD)

export ODIR _OBJS LDFLAGS CXX W32FLAGS DEFINES CXXFLAGS
export ODIR _OBJS LDFLAGS CXX W32FLAGS DEFINES CXXFLAGS TARGETSYSTEM

ctags: $(SOURCES) $(HEADERS) $(TESTSRC) $(TESTHDR)
ctags $(SOURCES) $(HEADERS) $(TESTSRC) $(TESTHDR)
Expand Down
27 changes: 20 additions & 7 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@ if (localPropertiesFile.exists()) {
}
}

def keystorePropertiesFilename = 'keystore.properties'
if( localProperties.getProperty('keystorePropertiesFilename') != null ) {
keystorePropertiesFilename = localProperties.getProperty("keystorePropertiesFilename")
}

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file(keystorePropertiesFilename)
if (keystorePropertiesFile.exists()) {
keystorePropertiesFile.withReader('UTF-8') { reader ->
keystoreProperties.load(reader)
}
}

def njobs = getProperty("j")

task unzipDeps(type: Copy) {
Expand Down Expand Up @@ -101,16 +114,16 @@ android {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
signingConfigs {
if( localProperties.getProperty('storeFile') != null ) {
if( file(localProperties.getProperty('storeFile')).exists() ) {
if( keystoreProperties.getProperty('storeFile') != null ) {
if( file(keystoreProperties.getProperty('storeFile')).exists() ) {
release {
storeFile file(localProperties.getProperty("storeFile"))
storePassword localProperties.getProperty("storePassword")
keyAlias localProperties.getProperty("keyAlias")
keyPassword localProperties.getProperty("keyPassword")
storeFile file(keystoreProperties.getProperty("storeFile"))
storePassword keystoreProperties.getProperty("storePassword")
keyAlias keystoreProperties.getProperty("keyAlias")
keyPassword keystoreProperties.getProperty("keyPassword")
}
} else {
throw new GradleException("Keystore file " + localProperties.getProperty("storeFile") + " was not found.\n")
throw new GradleException("Keystore file " + keystoreProperties.getProperty("storeFile") + " was not found.\n")
}
}
}
Expand Down
Binary file modified android/app/deps.zip
Binary file not shown.
19 changes: 19 additions & 0 deletions android/app/src/main/java/org/libsdl/app/HIDDevice.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package org.libsdl.app;

interface HIDDevice
{
public int getId();
public int getVendorId();
public int getProductId();
public String getSerialNumber();
public int getVersion();
public String getManufacturerName();
public String getProductName();
public boolean open();
public int sendFeatureReport(byte[] report);
public int sendOutputReport(byte[] report);
public boolean getFeatureReport(byte[] report);
public void setFrozen(boolean frozen);
public void close();
public void shutdown();
}
Loading

0 comments on commit d195e49

Please sign in to comment.