mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-06 13:47:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1 @@
|
||||
#Mon Aug 18 21:37:59 EDT 2025
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
#Mon Aug 18 21:07:35 EDT 2025
|
||||
gradle.version=9.0.0
|
||||
+1
@@ -0,0 +1 @@
|
||||
66F4571CEB3F59CFC24FC212DFCC0E596D9F32733A0F7068B9D1BF9D25EEB3F3
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module external.linked.project.id="Hybrid" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
|
||||
<component name="FacetManager">
|
||||
<facet type="java-gradle" name="Java-Gradle">
|
||||
<configuration>
|
||||
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
|
||||
<option name="BUILDABLE" value="false" />
|
||||
</configuration>
|
||||
</facet>
|
||||
</component>
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -0,0 +1,31 @@
|
||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
maven {
|
||||
url "https://maven.google.com"
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:1.3.0'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
url "https://maven.google.com"
|
||||
}
|
||||
jcenter()
|
||||
}
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
delete rootProject.buildDir
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
# 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.
|
||||
# Default value: -Xmx10248m -XX:MaxPermSize=256m
|
||||
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -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
|
||||
Binary file not shown.
+7
@@ -0,0 +1,7 @@
|
||||
#Tue Oct 20 18:05:43 PDT 2015
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-bin.zip
|
||||
|
||||
+164
@@ -0,0 +1,164 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
##############################################################################
|
||||
##
|
||||
## Gradle start up script for UN*X
|
||||
##
|
||||
##############################################################################
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS=""
|
||||
|
||||
APP_NAME="Gradle"
|
||||
APP_BASE_NAME=`basename "$0"`
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD="maximum"
|
||||
|
||||
warn ( ) {
|
||||
echo "$*"
|
||||
}
|
||||
|
||||
die ( ) {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
case "`uname`" in
|
||||
CYGWIN* )
|
||||
cygwin=true
|
||||
;;
|
||||
Darwin* )
|
||||
darwin=true
|
||||
;;
|
||||
MINGW* )
|
||||
msys=true
|
||||
;;
|
||||
esac
|
||||
|
||||
# For Cygwin, ensure paths are in UNIX format before anything is touched.
|
||||
if $cygwin ; then
|
||||
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
|
||||
fi
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
# Resolve links: $0 may be a link
|
||||
PRG="$0"
|
||||
# Need this for relative symlinks.
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`"/$link"
|
||||
fi
|
||||
done
|
||||
SAVED="`pwd`"
|
||||
cd "`dirname \"$PRG\"`/" >&-
|
||||
APP_HOME="`pwd -P`"
|
||||
cd "$SAVED" >&-
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||
else
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD="java"
|
||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
|
||||
MAX_FD_LIMIT=`ulimit -H -n`
|
||||
if [ $? -eq 0 ] ; then
|
||||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
||||
MAX_FD="$MAX_FD_LIMIT"
|
||||
fi
|
||||
ulimit -n $MAX_FD
|
||||
if [ $? -ne 0 ] ; then
|
||||
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
||||
fi
|
||||
else
|
||||
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
||||
fi
|
||||
fi
|
||||
|
||||
# For Darwin, add options to specify how the application appears in the dock
|
||||
if $darwin; then
|
||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||
fi
|
||||
|
||||
# For Cygwin, switch paths to Windows format before running java
|
||||
if $cygwin ; then
|
||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||
|
||||
# We build the pattern for arguments to be converted via cygpath
|
||||
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
||||
SEP=""
|
||||
for dir in $ROOTDIRSRAW ; do
|
||||
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
||||
SEP="|"
|
||||
done
|
||||
OURCYGPATTERN="(^($ROOTDIRS))"
|
||||
# Add a user-defined pattern to the cygpath arguments
|
||||
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
||||
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
||||
fi
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
i=0
|
||||
for arg in "$@" ; do
|
||||
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
||||
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
||||
|
||||
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
||||
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
||||
else
|
||||
eval `echo args$i`="\"$arg\""
|
||||
fi
|
||||
i=$((i+1))
|
||||
done
|
||||
case $i in
|
||||
(0) set -- ;;
|
||||
(1) set -- "$args0" ;;
|
||||
(2) set -- "$args0" "$args1" ;;
|
||||
(3) set -- "$args0" "$args1" "$args2" ;;
|
||||
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
|
||||
function splitJvmOpts() {
|
||||
JVM_OPTS=("$@")
|
||||
}
|
||||
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
|
||||
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
|
||||
|
||||
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
|
||||
@@ -0,0 +1,90 @@
|
||||
@if "%DEBUG%" == "" @echo off␍
|
||||
@rem ##########################################################################␍
|
||||
@rem␍
|
||||
@rem Gradle startup script for Windows␍
|
||||
@rem␍
|
||||
@rem ##########################################################################␍
|
||||
␍
|
||||
@rem Set local scope for the variables with windows NT shell␍
|
||||
if "%OS%"=="Windows_NT" setlocal␍
|
||||
␍
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.␍
|
||||
set DEFAULT_JVM_OPTS=␍
|
||||
␍
|
||||
set DIRNAME=%~dp0␍
|
||||
if "%DIRNAME%" == "" set DIRNAME=.␍
|
||||
set APP_BASE_NAME=%~n0␍
|
||||
set APP_HOME=%DIRNAME%␍
|
||||
␍
|
||||
@rem Find java.exe␍
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome␍
|
||||
␍
|
||||
set JAVA_EXE=java.exe␍
|
||||
%JAVA_EXE% -version >NUL 2>&1␍
|
||||
if "%ERRORLEVEL%" == "0" goto init␍
|
||||
␍
|
||||
echo.␍
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.␍
|
||||
echo.␍
|
||||
echo Please set the JAVA_HOME variable in your environment to match the␍
|
||||
echo location of your Java installation.␍
|
||||
␍
|
||||
goto fail␍
|
||||
␍
|
||||
:findJavaFromJavaHome␍
|
||||
set JAVA_HOME=%JAVA_HOME:"=%␍
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe␍
|
||||
␍
|
||||
if exist "%JAVA_EXE%" goto init␍
|
||||
␍
|
||||
echo.␍
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%␍
|
||||
echo.␍
|
||||
echo Please set the JAVA_HOME variable in your environment to match the␍
|
||||
echo location of your Java installation.␍
|
||||
␍
|
||||
goto fail␍
|
||||
␍
|
||||
:init␍
|
||||
@rem Get command-line arguments, handling Windowz variants␍
|
||||
␍
|
||||
if not "%OS%" == "Windows_NT" goto win9xME_args␍
|
||||
if "%@eval[2+2]" == "4" goto 4NT_args␍
|
||||
␍
|
||||
:win9xME_args␍
|
||||
@rem Slurp the command line arguments.␍
|
||||
set CMD_LINE_ARGS=␍
|
||||
set _SKIP=2␍
|
||||
␍
|
||||
:win9xME_args_slurp␍
|
||||
if "x%~1" == "x" goto execute␍
|
||||
␍
|
||||
set CMD_LINE_ARGS=%*␍
|
||||
goto execute␍
|
||||
␍
|
||||
:4NT_args␍
|
||||
@rem Get arguments from the 4NT Shell from JP Software␍
|
||||
set CMD_LINE_ARGS=%$␍
|
||||
␍
|
||||
:execute␍
|
||||
@rem Setup the command line␍
|
||||
␍
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar␍
|
||||
␍
|
||||
@rem Execute Gradle␍
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%␍
|
||||
␍
|
||||
:end␍
|
||||
@rem End local scope for the variables with windows NT shell␍
|
||||
if "%ERRORLEVEL%"=="0" goto mainEnd␍
|
||||
␍
|
||||
:fail␍
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of␍
|
||||
rem the _cmd.exe /c_ return code!␍
|
||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1␍
|
||||
exit /b 1␍
|
||||
␍
|
||||
:mainEnd␍
|
||||
if "%OS%"=="Windows_NT" endlocal␍
|
||||
␍
|
||||
:omega␍
|
||||
@@ -0,0 +1,101 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module external.linked.project.id=":Hybrid" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/../../../../../Android" external.system.id="GRADLE" external.system.module.group="Android" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
|
||||
<component name="FacetManager">
|
||||
<facet type="android-gradle" name="Android-Gradle">
|
||||
<configuration>
|
||||
<option name="GRADLE_PROJECT_PATH" value=":Hybrid" />
|
||||
</configuration>
|
||||
</facet>
|
||||
<facet type="android" name="Android">
|
||||
<configuration>
|
||||
<option name="SELECTED_BUILD_VARIANT" value="debug" />
|
||||
<option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
|
||||
<option name="COMPILE_JAVA_TASK_NAME" value="compileDebugSources" />
|
||||
<afterSyncTasks>
|
||||
<task>generateDebugSources</task>
|
||||
</afterSyncTasks>
|
||||
<option name="ALLOW_USER_CONFIGURATION" value="false" />
|
||||
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
|
||||
<option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
|
||||
<option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res" />
|
||||
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
|
||||
<option name="PROJECT_TYPE" value="1" />
|
||||
</configuration>
|
||||
</facet>
|
||||
</component>
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="false">
|
||||
<output url="file://$MODULE_DIR$/build/intermediates/classes/debug" />
|
||||
<output-test url="file://$MODULE_DIR$/build/intermediates/classes/test/debug" />
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/debug" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/debug" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/debug" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/debug" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/androidTest/debug" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/androidTest/debug" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/androidTest/debug" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/androidTest/debug" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/res" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/resources" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/assets" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/aidl" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/java" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/testDebug/rs" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/aidl" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/test/res" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/test/assets" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/test/aidl" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/annotations" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/21.0.0/jars" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jniLibs" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/lint" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/transforms" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/reports" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/test-results" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
|
||||
<excludeFolder url="jar://$MODULE_DIR$/build/intermediates/mockable-android-21.jar!/" />
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" exported="" name="support-v4-21.0.0" level="project" />
|
||||
<orderEntry type="library" exported="" scope="TEST" name="hamcrest-core-1.3" level="project" />
|
||||
<orderEntry type="library" exported="" scope="TEST" name="junit-4.12" level="project" />
|
||||
<orderEntry type="library" exported="" name="support-annotations-21.0.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="android-android-21" level="project" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -0,0 +1,32 @@
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
android {
|
||||
compileSdkVersion 21
|
||||
buildToolsVersion "21.1.1"
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 15
|
||||
targetSdkVersion 21
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
lintOptions {
|
||||
abortOnError false
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||
compile 'com.android.support:support-v4:21.0.0'
|
||||
testCompile 'junit:junit:4.12'
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
<!-- Copyright (C) 2014 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
--><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="android.support.v4">
|
||||
<uses-sdk android:minSdkVersion="4"/>
|
||||
<application/>
|
||||
</manifest>
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright (C) 2014 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.support.v4.app;
|
||||
|
||||
import android.app.Notification;
|
||||
|
||||
/**
|
||||
* Interface used for delivering notifications via a side channel that bypasses
|
||||
* the NotificationManagerService.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
oneway interface INotificationSideChannel {
|
||||
/**
|
||||
* Send an ambient notification to the service.
|
||||
*/
|
||||
void notify(String packageName, int id, String tag, in Notification notification);
|
||||
|
||||
/**
|
||||
* Cancel an already-notified notification.
|
||||
*/
|
||||
void cancel(String packageName, int id, String tag);
|
||||
|
||||
/**
|
||||
* Cancel all notifications for the given package.
|
||||
*/
|
||||
void cancelAll(String packageName);
|
||||
}
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+2
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="21.0.0"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\intermediates\exploded-aar\com.android.support\support-v4\21.0.0\assets"/></dataSet><dataSet config="debug"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\intermediates\bundles\debug\assets"/></dataSet><dataSet config="main"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\androidTest\assets"/></dataSet></merger>
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="21.0.0$Generated" generated="true"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\intermediates\exploded-aar\com.android.support\support-v4\21.0.0\res"/></dataSet><dataSet config="debug$Generated" generated="true"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\intermediates\bundles\debug\res"/></dataSet><dataSet config="main$Generated" generated="true"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\androidTest\res"/><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\generated\res\rs\androidTest\debug"/><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\generated\res\resValues\androidTest\debug"/></dataSet><dataSet config="21.0.0" generated-set="21.0.0$Generated"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\intermediates\exploded-aar\com.android.support\support-v4\21.0.0\res"/></dataSet><dataSet config="debug" generated-set="debug$Generated"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\intermediates\bundles\debug\res"><file path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\intermediates\bundles\debug\res\values\values.xml" qualifiers=""><string name="hybrid_library_name">HybridLibrary</string></file></source></dataSet><dataSet config="main" generated-set="main$Generated"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\androidTest\res"/><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\generated\res\rs\androidTest\debug"/><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\generated\res\resValues\androidTest\debug"/></dataSet><mergedItems/></merger>
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="main"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\main\assets"/></dataSet><dataSet config="debug"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\debug\assets"/></dataSet></merger>
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="main"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\main\jniLibs"/></dataSet><dataSet config="debug"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\debug\jniLibs"/></dataSet></merger>
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="21.0.0$Generated" generated="true"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\intermediates\exploded-aar\com.android.support\support-v4\21.0.0\res"/></dataSet><dataSet config="main$Generated" generated="true"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\main\res"/><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\generated\res\rs\debug"/><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\generated\res\resValues\debug"/></dataSet><dataSet config="debug$Generated" generated="true"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\debug\res"/></dataSet><dataSet config="21.0.0" generated-set="21.0.0$Generated"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\intermediates\exploded-aar\com.android.support\support-v4\21.0.0\res"/></dataSet><dataSet config="main" generated-set="main$Generated"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\main\res"><file path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\main\res\values\strings.xml" qualifiers=""><string name="hybrid_library_name">HybridLibrary</string></file></source><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\generated\res\rs\debug"/><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\generated\res\resValues\debug"/></dataSet><dataSet config="debug" generated-set="debug$Generated"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\debug\res"/></dataSet><mergedItems/></merger>
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="main"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\main\assets"/></dataSet><dataSet config="release"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\release\assets"/></dataSet></merger>
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="main"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\main\jniLibs"/></dataSet><dataSet config="release"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\release\jniLibs"/></dataSet></merger>
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="21.0.0$Generated" generated="true"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\intermediates\exploded-aar\com.android.support\support-v4\21.0.0\res"/></dataSet><dataSet config="main$Generated" generated="true"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\main\res"/><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\generated\res\rs\release"/><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\generated\res\resValues\release"/></dataSet><dataSet config="release$Generated" generated="true"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\release\res"/></dataSet><dataSet config="21.0.0" generated-set="21.0.0$Generated"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\intermediates\exploded-aar\com.android.support\support-v4\21.0.0\res"/></dataSet><dataSet config="main" generated-set="main$Generated"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\main\res"><file path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\main\res\values\strings.xml" qualifiers=""><string name="hybrid_library_name">HybridLibrary</string></file></source><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\generated\res\rs\release"/><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\generated\res\resValues\release"/></dataSet><dataSet config="release" generated-set="release$Generated"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\release\res"/></dataSet><mergedItems/></merger>
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="21.0.0"><source path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/build/intermediates/exploded-aar/com.android.support/support-v4/21.0.0/res"/></dataSet><dataSet config="main"><source path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/src/main/res"><file path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/src/main/res/values/strings.xml" qualifiers=""><string name="hybrid_library_name">HybridLibrary</string></file></source><source path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/build/generated/res/rs/debug"/><source path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/build/generated/res/resValues/debug"/></dataSet><dataSet config="debug"><source path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/src/debug/res"/></dataSet><mergedItems/></merger>
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="21.0.0"><source path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/build/intermediates/exploded-aar/com.android.support/support-v4/21.0.0/res"/></dataSet><dataSet config="main"><source path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/src/main/res"><file path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/src/main/res/values/strings.xml" qualifiers=""><string name="hybrid_library_name">HybridLibrary</string></file></source><source path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/build/generated/res/rs/release"/><source path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/build/generated/res/resValues/release"/></dataSet><dataSet config="release"><source path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/src/release/res"/></dataSet><mergedItems/></merger>
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="main$Generated" generated="true"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\main\res"/><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\generated\res\rs\debug"/><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\generated\res\resValues\debug"/></dataSet><dataSet config="debug$Generated" generated="true"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\debug\res"/></dataSet><dataSet config="main" generated-set="main$Generated"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\main\res"><file path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\main\res\values\strings.xml" qualifiers=""><string name="hybrid_library_name">HybridLibrary</string></file></source><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\generated\res\rs\debug"/><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\generated\res\resValues\debug"/></dataSet><dataSet config="debug" generated-set="debug$Generated"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\debug\res"/></dataSet><mergedItems/></merger>
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="main$Generated" generated="true"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\main\res"/><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\generated\res\rs\release"/><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\generated\res\resValues\release"/></dataSet><dataSet config="release$Generated" generated="true"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\release\res"/></dataSet><dataSet config="main" generated-set="main$Generated"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\main\res"><file path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\main\res\values\strings.xml" qualifiers=""><string name="hybrid_library_name">HybridLibrary</string></file></source><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\generated\res\rs\release"/><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\build\generated\res\resValues\release"/></dataSet><dataSet config="release" generated-set="release$Generated"><source path="F:\Trunk2012\Client\RobloxHybrid\platforms\android\Hybrid\hybridlib\src\release\res"/></dataSet><mergedItems/></merger>
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="main"><source path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/src/main/res"><file path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/src/main/res/values/strings.xml" qualifiers=""><string name="hybrid_library_name">HybridLibrary</string></file></source><source path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/build/generated/res/rs/debug"/><source path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/build/generated/res/resValues/debug"/></dataSet><dataSet config="debug"><source path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/src/debug/res"/></dataSet><mergedItems/></merger>
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<merger version="3"><dataSet config="main"><source path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/src/main/res"><file path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/src/main/res/values/strings.xml" qualifiers=""><string name="hybrid_library_name">HybridLibrary</string></file></source><source path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/build/generated/res/rs/release"/><source path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/build/generated/res/resValues/release"/></dataSet><dataSet config="release"><source path="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/src/release/res"/></dataSet><mergedItems/></merger>
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1,471 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Lint Report</title>
|
||||
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Roboto" />
|
||||
<link rel="stylesheet" type="text/css" href="lint-results_files/hololike.css" />
|
||||
<script language="javascript" type="text/javascript">
|
||||
<!--
|
||||
function reveal(id) {
|
||||
if (document.getElementById) {
|
||||
document.getElementById(id).style.display = 'block';
|
||||
document.getElementById(id+'Link').style.display = 'none';
|
||||
}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Lint Report</h1>
|
||||
<div class="titleSeparator"></div>
|
||||
Check performed at Mon Aug 18 22:41:54 EDT 2025.<br/>
|
||||
1 errors and 5 warnings found:<br/><br/>
|
||||
<table class="overview">
|
||||
<tr><td></td><td class="categoryColumn"><a href="#Lint">Lint</a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td class="countColumn">1</td><td class="issueColumn"><img border="0" align="top" src="lint-results_files/lint-error.png" alt="Error" />
|
||||
<a href="#LintError">LintError: Lint Failure</a>
|
||||
</td></tr>
|
||||
<tr><td></td><td class="categoryColumn"><a href="#Correctness">Correctness</a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td class="countColumn">1</td><td class="issueColumn"><img border="0" align="top" src="lint-results_files/lint-warning.png" alt="Warning" />
|
||||
<a href="#OldTargetApi">OldTargetApi: Target SDK attribute is not targeting latest version</a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td class="countColumn">2</td><td class="issueColumn"><img border="0" align="top" src="lint-results_files/lint-warning.png" alt="Warning" />
|
||||
<a href="#GradleDependency">GradleDependency: Obsolete Gradle Dependency</a>
|
||||
</td></tr>
|
||||
<tr><td></td><td class="categoryColumn"><a href="#Security">Security</a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td class="countColumn">1</td><td class="issueColumn"><img border="0" align="top" src="lint-results_files/lint-warning.png" alt="Warning" />
|
||||
<a href="#AddJavascriptInterface">AddJavascriptInterface: addJavascriptInterface Called</a>
|
||||
</td></tr>
|
||||
<tr><td></td><td class="categoryColumn"><a href="#Performance">Performance</a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td class="countColumn">1</td><td class="issueColumn"><img border="0" align="top" src="lint-results_files/lint-warning.png" alt="Warning" />
|
||||
<a href="#UnusedResources">UnusedResources: Unused resources</a>
|
||||
</td></tr>
|
||||
<tr><td></td><td class="categoryColumn"><a href="#MissingIssues">Disabled Checks (13)</a>
|
||||
</td></tr></table>
|
||||
<br/>
|
||||
<a name="Lint"></a>
|
||||
<div class="category"><a href="#" title="Return to top">Lint</a><div class="categorySeparator"></div>
|
||||
</div>
|
||||
<a name="LintError"></a>
|
||||
<div class="issue">
|
||||
<div class="id"><a href="#" title="Return to top">LintError: Lint Failure</a><div class="issueSeparator"></div>
|
||||
</div>
|
||||
<div class="warningslist">
|
||||
<span class="location"><a href="../../../hybridlib">../../../hybridlib</a></span>: <span class="message">Can't find API database; API check not performed</span><br />
|
||||
</div>
|
||||
<div class="metadata">Priority: 10 / 10<br/>
|
||||
Category: Lint</div>
|
||||
Severity: <span class="error">Error</span><div class="summary">
|
||||
Explanation: Lint Failure.</div>
|
||||
<div class="explanation">
|
||||
This issue type represents a problem running lint itself. Examples include failure to find bytecode for source files (which means certain detectors could not be run), parsing errors in lint configuration files, etc.<br/>
|
||||
These errors are not errors in your own code, but they are shown to make it clear that some checks were not completed.
|
||||
</div>
|
||||
<br/><div class="moreinfo">More info: </div><br/>To suppress this error, use the issue id "LintError" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/>
|
||||
</div>
|
||||
|
||||
<a name="Correctness"></a>
|
||||
<div class="category"><a href="#" title="Return to top">Correctness</a><div class="categorySeparator"></div>
|
||||
</div>
|
||||
<a name="OldTargetApi"></a>
|
||||
<div class="issue">
|
||||
<div class="id"><a href="#" title="Return to top">OldTargetApi: Target SDK attribute is not targeting latest version</a><div class="issueSeparator"></div>
|
||||
</div>
|
||||
<div class="warningslist">
|
||||
<span class="location"><a href="../../build.gradle">../../build.gradle</a>:9</span>: <span class="message">Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updating this version. Consult the android.os.Build.VERSION_CODES javadoc for details.</span><br /><pre class="errorlines">
|
||||
<span class="lineno"> 6</span>
|
||||
<span class="lineno"> 7</span> defaultConfig {
|
||||
<span class="lineno"> 8</span> minSdkVersion 15
|
||||
<span class="lineno"> 9</span> <span class="errorspan">targetSdkVersion 21␍</span>
|
||||
<span class="lineno"> 10</span> versionCode 1
|
||||
<span class="lineno"> 11</span> versionName "1.0"
|
||||
</pre>
|
||||
</div>
|
||||
<div class="metadata">Note: This issue has an associated quickfix operation in Android Studio/IntelliJ <img alt="Fix" border="0" align="top" src="lint-results_files/lint-run.png" />
|
||||
<br>
|
||||
Priority: 6 / 10<br/>
|
||||
Category: Correctness</div>
|
||||
Severity: <span class="warning">Warning</span><div class="summary">
|
||||
Explanation: Target SDK attribute is not targeting latest version.</div>
|
||||
<div class="explanation">
|
||||
When your application runs on a version of Android that is more recent than your <code>targetSdkVersion</code> specifies that it has been tested with, various compatibility modes kick in. This ensures that your application continues to work, but it may look out of place. For example, if the <code>targetSdkVersion</code> is less than 14, your app may get an option button in the UI.<br/>
|
||||
<br/>
|
||||
To fix this issue, set the <code>targetSdkVersion</code> to the highest available value. Then test your app to make sure everything works correctly. You may want to consult the compatibility notes to see what changes apply to each version you are adding support for: <a href="http://developer.android.com/reference/android/os/Build.VERSION_CODES.html">http://developer.android.com/reference/android/os/Build.VERSION_CODES.html</a>
|
||||
</div>
|
||||
<br/><div class="moreinfo">More info: <a href="http://developer.android.com/reference/android/os/Build.VERSION_CODES.html">http://developer.android.com/reference/android/os/Build.VERSION_CODES.html</a>
|
||||
</div><br/>To suppress this error, use the issue id "OldTargetApi" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/>
|
||||
</div>
|
||||
<a name="GradleDependency"></a>
|
||||
<div class="issue">
|
||||
<div class="id"><a href="#" title="Return to top">GradleDependency: Obsolete Gradle Dependency</a><div class="issueSeparator"></div>
|
||||
</div>
|
||||
<div class="warningslist">
|
||||
<span class="location"><a href="../../build.gradle">../../build.gradle</a>:5</span>: <span class="message">Old buildToolsVersion 21.1.1; recommended version is 21.1.2 or later</span><br /><pre class="errorlines">
|
||||
<span class="lineno"> 2</span>
|
||||
<span class="lineno"> 3</span> android {
|
||||
<span class="lineno"> 4</span> compileSdkVersion 21
|
||||
<span class="lineno"> 5</span> <span class="errorspan">buildToolsVersion "21.1.1"␍</span>
|
||||
<span class="lineno"> 6</span>
|
||||
<span class="lineno"> 7</span> defaultConfig {
|
||||
</pre>
|
||||
<span class="location"><a href="../../build.gradle">../../build.gradle</a>:30</span>: <span class="message">Dependency on a support library, but the SDK installation does not have the "Extras > Android Support Repository" installed. Open the SDK manager and install it.</span><br /><pre class="errorlines">
|
||||
<span class="lineno"> 27</span>
|
||||
<span class="lineno"> 28</span> dependencies {
|
||||
<span class="lineno"> 29</span> compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||
<span class="lineno"> 30</span> <span class="errorspan">compile 'com.android.support:support-v4:21.0.0'␍</span>
|
||||
<span class="lineno"> 31</span> testCompile 'junit:junit:4.12'
|
||||
<span class="lineno"> 32</span> }
|
||||
</pre>
|
||||
</div>
|
||||
<div class="metadata">Note: This issue has an associated quickfix operation in Android Studio/IntelliJ <img alt="Fix" border="0" align="top" src="lint-results_files/lint-run.png" />
|
||||
<br>
|
||||
Priority: 4 / 10<br/>
|
||||
Category: Correctness</div>
|
||||
Severity: <span class="warning">Warning</span><div class="summary">
|
||||
Explanation: Obsolete Gradle Dependency.</div>
|
||||
<div class="explanation">
|
||||
This detector looks for usages of libraries where the version you are using is not the current stable release. Using older versions is fine, and there are cases where you deliberately want to stick with an older version. However, you may simply not be aware that a more recent version is available, and that is what this lint check helps find.
|
||||
</div>
|
||||
<br/><div class="moreinfo">More info: </div><br/>To suppress this error, use the issue id "GradleDependency" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/>
|
||||
</div>
|
||||
|
||||
<a name="Security"></a>
|
||||
<div class="category"><a href="#" title="Return to top">Security</a><div class="categorySeparator"></div>
|
||||
</div>
|
||||
<a name="AddJavascriptInterface"></a>
|
||||
<div class="issue">
|
||||
<div class="id"><a href="#" title="Return to top">AddJavascriptInterface: addJavascriptInterface Called</a><div class="issueSeparator"></div>
|
||||
</div>
|
||||
<div class="warningslist">
|
||||
<span class="location"><a href="../../src/main/java/com/roblox/hybrid/RBHybridWebView.java">../../src/main/java/com/roblox/hybrid/RBHybridWebView.java</a>:100</span>: <span class="message"><code>WebView.addJavascriptInterface</code> should not be called with minSdkVersion < 17 for security reasons: JavaScript can use reflection to manipulate application</span><br /><pre class="errorlines">
|
||||
<span class="lineno"> 97</span>
|
||||
<span class="lineno"> 98</span> // Inject a JS interface into the client code
|
||||
<span class="lineno"> 99</span> JSBridge bridge = new JSBridge();
|
||||
<span class="lineno"> 100</span> this.<span class="errorspan">addJavascriptInterface(bridge, "__globalRobloxAndroidBridge__");␍</span>
|
||||
<span class="lineno"> 101</span>
|
||||
<span class="lineno"> 102</span> // TODO: Remove
|
||||
</pre>
|
||||
</div>
|
||||
<div class="metadata">Priority: 9 / 10<br/>
|
||||
Category: Security</div>
|
||||
Severity: <span class="warning">Warning</span><div class="summary">
|
||||
Explanation: addJavascriptInterface Called.</div>
|
||||
<div class="explanation">
|
||||
For applications built for API levels below 17, <code>WebView#addJavascriptInterface</code> presents a security hazard as JavaScript on the target web page has the ability to use reflection to access the injected object's public fields and thus manipulate the host application in unintended ways.
|
||||
</div>
|
||||
<br/><div class="moreinfo">More info: <a href="https://labs.mwrinfosecurity.com/blog/2013/09/24/webview-addjavascriptinterface-remote-code-execution/">https://labs.mwrinfosecurity.com/blog/2013/09/24/webview-addjavascriptinterface-remote-code-execution/</a>
|
||||
</div><br/>To suppress this error, use the issue id "AddJavascriptInterface" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/>
|
||||
</div>
|
||||
|
||||
<a name="Performance"></a>
|
||||
<div class="category"><a href="#" title="Return to top">Performance</a><div class="categorySeparator"></div>
|
||||
</div>
|
||||
<a name="UnusedResources"></a>
|
||||
<div class="issue">
|
||||
<div class="id"><a href="#" title="Return to top">UnusedResources: Unused resources</a><div class="issueSeparator"></div>
|
||||
</div>
|
||||
<div class="warningslist">
|
||||
<span class="location"><a href="../../src/main/res/values/strings.xml">../../src/main/res/values/strings.xml</a>:2</span>: <span class="message">The resource <code>R.string.hybrid_library_name</code> appears to be unused</span><br /><pre class="errorlines">
|
||||
<span class="lineno"> 1</span> <resources>
|
||||
<span class="lineno"> 2</span> <string <span class="errorspan">name="hybrid_library_name">HybridLibrary</string>␍</span>
|
||||
<span class="lineno"> 3</span> </resources>
|
||||
<span class="lineno"> 4</span>
|
||||
</pre>
|
||||
</div>
|
||||
<div class="metadata">Priority: 3 / 10<br/>
|
||||
Category: Performance</div>
|
||||
Severity: <span class="warning">Warning</span><div class="summary">
|
||||
Explanation: Unused resources.</div>
|
||||
<div class="explanation">
|
||||
Unused resources make applications larger and slow down builds.
|
||||
</div>
|
||||
<br/><div class="moreinfo">More info: </div><br/>To suppress this error, use the issue id "UnusedResources" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/>
|
||||
</div>
|
||||
|
||||
<a name="MissingIssues"></a>
|
||||
<div class="category">Disabled Checks<div class="categorySeparator"></div>
|
||||
</div>
|
||||
The following issues were not run by lint, either because the check is not enabled by default, or because it was disabled with a command line flag or via one or more lint.xml configuration files in the project directories.
|
||||
<br/><br/>
|
||||
<a name="BackButton"></a>
|
||||
<div class="issue">
|
||||
<div class="id">BackButton<div class="issueSeparator"></div>
|
||||
</div>
|
||||
<div class="metadata">Disabled By: Default<br/>
|
||||
Priority: 6 / 10<br/>
|
||||
Category: Usability</div>
|
||||
Severity: <span class="warning">Warning</span><div class="summary">
|
||||
Explanation: Back button.</div>
|
||||
<div class="explanation">
|
||||
According to the Android Design Guide,<br/>
|
||||
<br/>
|
||||
"Other platforms use an explicit back button with label to allow the user to navigate up the application's hierarchy. Instead, Android uses the main action bar's app icon for hierarchical navigation and the navigation bar's back button for temporal navigation."<br/>
|
||||
This check is not very sophisticated (it just looks for buttons with the label "Back"), so it is disabled by default to not trigger on common scenarios like pairs of Back/Next buttons to paginate through screens.
|
||||
</div>
|
||||
<br/><div class="moreinfo">More info: <a href="http://developer.android.com/design/patterns/pure-android.html">http://developer.android.com/design/patterns/pure-android.html</a>
|
||||
</div><br/>To suppress this error, use the issue id "BackButton" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/>
|
||||
</div>
|
||||
<a name="EasterEgg"></a>
|
||||
<div class="issue">
|
||||
<div class="id">EasterEgg<div class="issueSeparator"></div>
|
||||
</div>
|
||||
<div class="metadata">Disabled By: Default<br/>
|
||||
Priority: 6 / 10<br/>
|
||||
Category: Security</div>
|
||||
Severity: <span class="warning">Warning</span><div class="summary">
|
||||
Explanation: Code contains easter egg.</div>
|
||||
<div class="explanation">
|
||||
An "easter egg" is code deliberately hidden in the code, both from potential users and even from other developers. This lint check looks for code which looks like it may be hidden from sight.
|
||||
</div>
|
||||
<br/><div class="moreinfo">More info: </div><br/>To suppress this error, use the issue id "EasterEgg" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/>
|
||||
</div>
|
||||
<a name="FieldGetter"></a>
|
||||
<div class="issue">
|
||||
<div class="id">FieldGetter<div class="issueSeparator"></div>
|
||||
</div>
|
||||
<div class="metadata">Disabled By: Default<br/>
|
||||
Priority: 4 / 10<br/>
|
||||
Category: Performance</div>
|
||||
Severity: <span class="warning">Warning</span><div class="summary">
|
||||
Explanation: Using getter instead of field.</div>
|
||||
<div class="explanation">
|
||||
Accessing a field within the class that defines a getter for that field is at least 3 times faster than calling the getter. For simple getters that do nothing other than return the field, you might want to just reference the local field directly instead.<br/>
|
||||
<br/>
|
||||
<b>NOTE</b>: As of Android 2.3 (Gingerbread), this optimization is performed automatically by Dalvik, so there is no need to change your code; this is only relevant if you are targeting older versions of Android.
|
||||
</div>
|
||||
<br/><div class="moreinfo">More info: <a href="http://developer.android.com/guide/practices/design/performance.html#internal_get_set">http://developer.android.com/guide/practices/design/performance.html#internal_get_set</a>
|
||||
</div><br/>To suppress this error, use the issue id "FieldGetter" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/>
|
||||
</div>
|
||||
<a name="GoogleAppIndexingApiWarning"></a>
|
||||
<div class="issue">
|
||||
<div class="id">GoogleAppIndexingApiWarning<div class="issueSeparator"></div>
|
||||
</div>
|
||||
<div class="metadata">Disabled By: Default<br/>
|
||||
Priority: 5 / 10<br/>
|
||||
Category: Usability</div>
|
||||
Severity: <span class="warning">Warning</span><div class="summary">
|
||||
Explanation: Missing support for Google App Indexing Api.</div>
|
||||
<div class="explanation">
|
||||
Adds deep links to get your app into the Google index, to get installs and traffic to your app from Google Search.
|
||||
</div>
|
||||
<br/><div class="moreinfo">More info: <a href="https://g.co/AppIndexing/AndroidStudio">https://g.co/AppIndexing/AndroidStudio</a>
|
||||
</div><br/>To suppress this error, use the issue id "GoogleAppIndexingApiWarning" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/>
|
||||
</div>
|
||||
<a name="IconExpectedSize"></a>
|
||||
<div class="issue">
|
||||
<div class="id">IconExpectedSize<div class="issueSeparator"></div>
|
||||
</div>
|
||||
<div class="metadata">Disabled By: Default<br/>
|
||||
Priority: 5 / 10<br/>
|
||||
Category: Usability:Icons</div>
|
||||
Severity: <span class="warning">Warning</span><div class="summary">
|
||||
Explanation: Icon has incorrect size.</div>
|
||||
<div class="explanation">
|
||||
There are predefined sizes (for each density) for launcher icons. You should follow these conventions to make sure your icons fit in with the overall look of the platform.
|
||||
</div>
|
||||
<br/><div class="moreinfo">More info: <a href="http://developer.android.com/design/style/iconography.html">http://developer.android.com/design/style/iconography.html</a>
|
||||
</div><br/>To suppress this error, use the issue id "IconExpectedSize" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/>
|
||||
</div>
|
||||
<a name="LogConditional"></a>
|
||||
<div class="issue">
|
||||
<div class="id">LogConditional<div class="issueSeparator"></div>
|
||||
</div>
|
||||
<div class="metadata">Disabled By: Default<br/>
|
||||
Priority: 5 / 10<br/>
|
||||
Category: Performance</div>
|
||||
Severity: <span class="warning">Warning</span><div class="summary">
|
||||
Explanation: Unconditional Logging Calls.</div>
|
||||
<div class="explanation">
|
||||
The BuildConfig class (available in Tools 17) provides a constant, "DEBUG", which indicates whether the code is being built in release mode or in debug mode. In release mode, you typically want to strip out all the logging calls. Since the compiler will automatically remove all code which is inside a "if (false)" check, surrounding your logging calls with a check for BuildConfig.DEBUG is a good idea.<br/>
|
||||
<br/>
|
||||
If you <b>really</b> intend for the logging to be present in release mode, you can suppress this warning with a @SuppressLint annotation for the intentional logging calls.
|
||||
</div>
|
||||
<br/><div class="moreinfo">More info: </div><br/>To suppress this error, use the issue id "LogConditional" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/>
|
||||
</div>
|
||||
<a name="MangledCRLF"></a>
|
||||
<div class="issue">
|
||||
<div class="id">MangledCRLF<div class="issueSeparator"></div>
|
||||
</div>
|
||||
<div class="metadata">Note: This issue has an associated quickfix operation in Eclipse/ADT <img alt="Fix" border="0" align="top" src="lint-results_files/lint-run.png" />
|
||||
<br>
|
||||
Disabled By: Default<br/>
|
||||
Priority: 2 / 10<br/>
|
||||
Category: Correctness</div>
|
||||
Severity: <span class="error">Error</span><div class="summary">
|
||||
Explanation: Mangled file line endings.</div>
|
||||
<div class="explanation">
|
||||
On Windows, line endings are typically recorded as carriage return plus newline: \r\n.<br/>
|
||||
<br/>
|
||||
This detector looks for invalid line endings with repeated carriage return characters (without newlines). Previous versions of the ADT plugin could accidentally introduce these into the file, and when editing the file, the editor could produce confusing visual artifacts.
|
||||
</div>
|
||||
<br/><div class="moreinfo">More info: <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=375421">https://bugs.eclipse.org/bugs/show_bug.cgi?id=375421</a>
|
||||
</div><br/>To suppress this error, use the issue id "MangledCRLF" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/>
|
||||
</div>
|
||||
<a name="NegativeMargin"></a>
|
||||
<div class="issue">
|
||||
<div class="id">NegativeMargin<div class="issueSeparator"></div>
|
||||
</div>
|
||||
<div class="metadata">Disabled By: Default<br/>
|
||||
Priority: 4 / 10<br/>
|
||||
Category: Usability</div>
|
||||
Severity: <span class="warning">Warning</span><div class="summary">
|
||||
Explanation: Negative Margins.</div>
|
||||
<div class="explanation">
|
||||
Margin values should be positive. Negative values are generally a sign that you are making assumptions about views surrounding the current one, or may be tempted to turn off child clipping to allow a view to escape its parent. Turning off child clipping to do this not only leads to poor graphical performance, it also results in wrong touch event handling since touch events are based strictly on a chain of parent-rect hit tests. Finally, making assumptions about the size of strings can lead to localization problems.
|
||||
</div>
|
||||
<br/><div class="moreinfo">More info: </div><br/>To suppress this error, use the issue id "NegativeMargin" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/>
|
||||
</div>
|
||||
<a name="NewerVersionAvailable"></a>
|
||||
<div class="issue">
|
||||
<div class="id">NewerVersionAvailable<div class="issueSeparator"></div>
|
||||
</div>
|
||||
<div class="metadata">Note: This issue has an associated quickfix operation in Android Studio/IntelliJ <img alt="Fix" border="0" align="top" src="lint-results_files/lint-run.png" />
|
||||
<br>
|
||||
Disabled By: Default<br/>
|
||||
Priority: 4 / 10<br/>
|
||||
Category: Correctness</div>
|
||||
Severity: <span class="warning">Warning</span><div class="summary">
|
||||
Explanation: Newer Library Versions Available.</div>
|
||||
<div class="explanation">
|
||||
This detector checks with a central repository to see if there are newer versions available for the dependencies used by this project. This is similar to the <code>GradleDependency</code> check, which checks for newer versions available in the Android SDK tools and libraries, but this works with any MavenCentral dependency, and connects to the library every time, which makes it more flexible but also <b>much</b> slower.
|
||||
</div>
|
||||
<br/><div class="moreinfo">More info: </div><br/>To suppress this error, use the issue id "NewerVersionAvailable" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/>
|
||||
</div>
|
||||
<a name="SelectableText"></a>
|
||||
<div class="issue">
|
||||
<div class="id">SelectableText<div class="issueSeparator"></div>
|
||||
</div>
|
||||
<div class="metadata">Note: This issue has an associated quickfix operation in Android Studio/IntelliJ <img alt="Fix" border="0" align="top" src="lint-results_files/lint-run.png" />
|
||||
<br>
|
||||
Disabled By: Default<br/>
|
||||
Priority: 7 / 10<br/>
|
||||
Category: Usability</div>
|
||||
Severity: <span class="warning">Warning</span><div class="summary">
|
||||
Explanation: Dynamic text should probably be selectable.</div>
|
||||
<div class="explanation">
|
||||
If a <code><TextView></code> is used to display data, the user might want to copy that data and paste it elsewhere. To allow this, the <code><TextView></code> should specify <code>android:textIsSelectable="true"</code>.<br/>
|
||||
<br/>
|
||||
This lint check looks for TextViews which are likely to be displaying data: views whose text is set dynamically. This value will be ignored on platforms older than API 11, so it is okay to set it regardless of your <code>minSdkVersion</code>.
|
||||
</div>
|
||||
<br/><div class="moreinfo">More info: </div><br/>To suppress this error, use the issue id "SelectableText" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/>
|
||||
</div>
|
||||
<a name="StopShip"></a>
|
||||
<div class="issue">
|
||||
<div class="id">StopShip<div class="issueSeparator"></div>
|
||||
</div>
|
||||
<div class="metadata">Note: This issue has an associated quickfix operation in Android Studio/IntelliJ <img alt="Fix" border="0" align="top" src="lint-results_files/lint-run.png" />
|
||||
<br>
|
||||
Disabled By: Default<br/>
|
||||
Priority: 10 / 10<br/>
|
||||
Category: Correctness</div>
|
||||
Severity: <span class="warning">Warning</span><div class="summary">
|
||||
Explanation: Code contains <code>STOPSHIP</code> marker.</div>
|
||||
<div class="explanation">
|
||||
Using the comment <code>// STOPSHIP</code> can be used to flag code that is incomplete but checked in. This comment marker can be used to indicate that the code should not be shipped until the issue is addressed, and lint will look for these.
|
||||
</div>
|
||||
<br/><div class="moreinfo">More info: </div><br/>To suppress this error, use the issue id "StopShip" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/>
|
||||
</div>
|
||||
<a name="TypographyQuotes"></a>
|
||||
<div class="issue">
|
||||
<div class="id">TypographyQuotes<div class="issueSeparator"></div>
|
||||
</div>
|
||||
<div class="metadata">Note: This issue has an associated quickfix operation in Eclipse/ADT & Android Studio/IntelliJ <img alt="Fix" border="0" align="top" src="lint-results_files/lint-run.png" />
|
||||
<br>
|
||||
Disabled By: Default<br/>
|
||||
Priority: 5 / 10<br/>
|
||||
Category: Usability:Typography</div>
|
||||
Severity: <span class="warning">Warning</span><div class="summary">
|
||||
Explanation: Straight quotes can be replaced with curvy quotes.</div>
|
||||
<div class="explanation">
|
||||
Straight single quotes and double quotes, when used as a pair, can be replaced by "curvy quotes" (or directional quotes). This can make the text more readable.<br/>
|
||||
<br/>
|
||||
Note that you should never use grave accents and apostrophes to quote, `like this'.<br/>
|
||||
<br/>
|
||||
(Also note that you should not use curvy quotes for code fragments.)
|
||||
</div>
|
||||
<br/><div class="moreinfo">More info: <a href="http://en.wikipedia.org/wiki/Quotation_mark">http://en.wikipedia.org/wiki/Quotation_mark</a>
|
||||
</div><br/>To suppress this error, use the issue id "TypographyQuotes" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/>
|
||||
</div>
|
||||
<a name="UnusedIds"></a>
|
||||
<div class="issue">
|
||||
<div class="id">UnusedIds<div class="issueSeparator"></div>
|
||||
</div>
|
||||
<div class="metadata">Disabled By: Default<br/>
|
||||
Priority: 1 / 10<br/>
|
||||
Category: Performance</div>
|
||||
Severity: <span class="warning">Warning</span><div class="summary">
|
||||
Explanation: Unused id.</div>
|
||||
<div class="explanation">
|
||||
This resource id definition appears not to be needed since it is not referenced from anywhere. Having id definitions, even if unused, is not necessarily a bad idea since they make working on layouts and menus easier, so there is not a strong reason to delete these.
|
||||
</div>
|
||||
<br/><div class="moreinfo">More info: </div><br/>To suppress this error, use the issue id "UnusedIds" as explained in the <a href="#SuppressInfo">Suppressing Warnings and Errors</a> section.<br/>
|
||||
</div>
|
||||
|
||||
<a name="SuppressInfo"></a>
|
||||
<div class="category">Suppressing Warnings and Errors<div class="categorySeparator"></div>
|
||||
</div>
|
||||
Lint errors can be suppressed in a variety of ways:<br/>
|
||||
<br/>
|
||||
1. With a <code>@SuppressLint</code> annotation in the Java code<br/>
|
||||
2. With a <code>tools:ignore</code> attribute in the XML file<br/>
|
||||
3. With ignore flags specified in the <code>build.gradle</code> file, as explained below<br/>
|
||||
4. With a <code>lint.xml</code> configuration file in the project<br/>
|
||||
5. With a <code>lint.xml</code> configuration file passed to lint via the --config flag<br/>
|
||||
6. With the --ignore flag passed to lint.<br/>
|
||||
<br/>
|
||||
To suppress a lint warning with an annotation, add a <code>@SuppressLint("id")</code> annotation on the class, method or variable declaration closest to the warning instance you want to disable. The id can be one or more issue id's, such as <code>"UnusedResources"</code> or <code>{"UnusedResources","UnusedIds"}</code>, or it can be <code>"all"</code> to suppress all lint warnings in the given scope.<br/>
|
||||
<br/>
|
||||
To suppress a lint warning in an XML file, add a <code>tools:ignore="id"</code> attribute on the element containing the error, or one of its surrounding elements. You also need to define the namespace for the tools prefix on the root element in your document, next to the <code>xmlns:android</code> declaration:<br/>
|
||||
<code>xmlns:tools="http://schemas.android.com/tools"</code><br/>
|
||||
<br/>
|
||||
To suppress a lint warning in a <code>build.gradle</code> file, add a section like this:<br/>
|
||||
<br/>
|
||||
android {<br/>
|
||||
lintOptions {<br/>
|
||||
disable 'TypographyFractions','TypographyQuotes'<br/>
|
||||
}<br/>
|
||||
}<br/>
|
||||
<br/>
|
||||
Here we specify a comma separated list of issue id's after the disable command. You can also use <code>warning</code> or <code>error</code> instead of <code>disable</code> to change the severity of issues.<br/>
|
||||
<br/>
|
||||
To suppress lint warnings with a configuration XML file, create a file named <code>lint.xml</code> and place it at the root directory of the project in which it applies.<br/>
|
||||
<br/>
|
||||
The format of the <code>lint.xml</code> file is something like the following:<br/>
|
||||
<br/>
|
||||
<?xml version="1.0" encoding="UTF-8"?><br/>
|
||||
<lint><br/>
|
||||
<!-- Disable this given check in this project --><br/>
|
||||
<issue id="IconMissingDensityFolder" severity="ignore" /><br/>
|
||||
<br/>
|
||||
<!-- Ignore the ObsoleteLayoutParam issue in the given files --><br/>
|
||||
<issue id="ObsoleteLayoutParam"><br/>
|
||||
<ignore path="res/layout/activation.xml" /><br/>
|
||||
<ignore path="res/layout-xlarge/activation.xml" /><br/>
|
||||
</issue><br/>
|
||||
<br/>
|
||||
<!-- Ignore the UselessLeaf issue in the given file --><br/>
|
||||
<issue id="UselessLeaf"><br/>
|
||||
<ignore path="res/layout/main.xml" /><br/>
|
||||
</issue><br/>
|
||||
<br/>
|
||||
<!-- Change the severity of hardcoded strings to "error" --><br/>
|
||||
<issue id="HardcodedText" severity="error" /><br/>
|
||||
</lint><br/>
|
||||
<br/>
|
||||
To suppress lint checks from the command line, pass the --ignore flag with a comma separated list of ids to be suppressed, such as:<br/>
|
||||
<code>$ lint --ignore UnusedResources,UselessLeaf /my/project/path</code><br/>
|
||||
<br/>
|
||||
For more information, see <a href="http://g.co/androidstudio/suppressing-lint-warnings">http://g.co/androidstudio/suppressing-lint-warnings</a><br/>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,106 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<issues format="4">
|
||||
|
||||
<issue
|
||||
id="LintError"
|
||||
severity="Error"
|
||||
message="Can't find API database; API check not performed"
|
||||
category="Lint"
|
||||
priority="10"
|
||||
summary="Lint Failure"
|
||||
explanation="This issue type represents a problem running lint itself. Examples include failure to find bytecode for source files (which means certain detectors could not be run), parsing errors in lint configuration files, etc.
|
||||
These errors are not errors in your own code, but they are shown to make it clear that some checks were not completed.">
|
||||
<location
|
||||
file="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="OldTargetApi"
|
||||
severity="Warning"
|
||||
message="Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updating this version. Consult the android.os.Build.VERSION_CODES javadoc for details."
|
||||
category="Correctness"
|
||||
priority="6"
|
||||
summary="Target SDK attribute is not targeting latest version"
|
||||
explanation="When your application runs on a version of Android that is more recent than your `targetSdkVersion` specifies that it has been tested with, various compatibility modes kick in. This ensures that your application continues to work, but it may look out of place. For example, if the `targetSdkVersion` is less than 14, your app may get an option button in the UI.
|
||||
|
||||
To fix this issue, set the `targetSdkVersion` to the highest available value. Then test your app to make sure everything works correctly. You may want to consult the compatibility notes to see what changes apply to each version you are adding support for: http://developer.android.com/reference/android/os/Build.VERSION_CODES.html"
|
||||
url="http://developer.android.com/reference/android/os/Build.VERSION_CODES.html"
|
||||
urls="http://developer.android.com/reference/android/os/Build.VERSION_CODES.html"
|
||||
errorLine1=" targetSdkVersion 21␍"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~"
|
||||
quickfix="studio">
|
||||
<location
|
||||
file="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/build.gradle"
|
||||
line="9"
|
||||
column="9"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="GradleDependency"
|
||||
severity="Warning"
|
||||
message="Old buildToolsVersion 21.1.1; recommended version is 21.1.2 or later"
|
||||
category="Correctness"
|
||||
priority="4"
|
||||
summary="Obsolete Gradle Dependency"
|
||||
explanation="This detector looks for usages of libraries where the version you are using is not the current stable release. Using older versions is fine, and there are cases where you deliberately want to stick with an older version. However, you may simply not be aware that a more recent version is available, and that is what this lint check helps find."
|
||||
errorLine1=" buildToolsVersion "21.1.1"␍"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
||||
quickfix="studio">
|
||||
<location
|
||||
file="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/build.gradle"
|
||||
line="5"
|
||||
column="5"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="GradleDependency"
|
||||
severity="Warning"
|
||||
message="Dependency on a support library, but the SDK installation does not have the "Extras > Android Support Repository" installed. Open the SDK manager and install it."
|
||||
category="Correctness"
|
||||
priority="4"
|
||||
summary="Obsolete Gradle Dependency"
|
||||
explanation="This detector looks for usages of libraries where the version you are using is not the current stable release. Using older versions is fine, and there are cases where you deliberately want to stick with an older version. However, you may simply not be aware that a more recent version is available, and that is what this lint check helps find."
|
||||
errorLine1=" compile 'com.android.support:support-v4:21.0.0'␍"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
||||
quickfix="studio">
|
||||
<location
|
||||
file="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/build.gradle"
|
||||
line="30"
|
||||
column="5"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="AddJavascriptInterface"
|
||||
severity="Warning"
|
||||
message="`WebView.addJavascriptInterface` should not be called with minSdkVersion < 17 for security reasons: JavaScript can use reflection to manipulate application"
|
||||
category="Security"
|
||||
priority="9"
|
||||
summary="addJavascriptInterface Called"
|
||||
explanation="For applications built for API levels below 17, `WebView#addJavascriptInterface` presents a security hazard as JavaScript on the target web page has the ability to use reflection to access the injected object's public fields and thus manipulate the host application in unintended ways."
|
||||
url="https://labs.mwrinfosecurity.com/blog/2013/09/24/webview-addjavascriptinterface-remote-code-execution/"
|
||||
urls="https://labs.mwrinfosecurity.com/blog/2013/09/24/webview-addjavascriptinterface-remote-code-execution/"
|
||||
errorLine1=" this.addJavascriptInterface(bridge, "__globalRobloxAndroidBridge__");␍"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/src/main/java/com/roblox/hybrid/RBHybridWebView.java"
|
||||
line="100"
|
||||
column="14"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedResources"
|
||||
severity="Warning"
|
||||
message="The resource `R.string.hybrid_library_name` appears to be unused"
|
||||
category="Performance"
|
||||
priority="3"
|
||||
summary="Unused resources"
|
||||
explanation="Unused resources make applications larger and slow down builds."
|
||||
errorLine1=" <string name="hybrid_library_name">HybridLibrary</string>␍"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="/mnt/f/Trunk2012/BuildWatrbx/RobloxHybrid/platforms/android/Hybrid/hybridlib/src/main/res/values/strings.xml"
|
||||
line="2"
|
||||
column="13"/>
|
||||
</issue>
|
||||
|
||||
</issues>
|
||||
+175
@@ -0,0 +1,175 @@
|
||||
body {
|
||||
max-width: 800px;
|
||||
background-color: #000000;
|
||||
background: -webkit-gradient(linear, left top, right bottom, from(#000000), to(#272d33));
|
||||
background: -moz-linear-gradient(left top, #000000, #272d33);
|
||||
color: #f3f3f3;
|
||||
font-family: 'Roboto', Sans-Serif;
|
||||
}
|
||||
.issue {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
padding: 5px 0px 5px 5px;
|
||||
}
|
||||
.id {
|
||||
font-size: 14pt;
|
||||
color: #bebebe;
|
||||
margin: 5px 0px 5px 0px;
|
||||
}
|
||||
.category {
|
||||
font-size: 18pt;
|
||||
color: #bebebe;
|
||||
margin: 10px 0px 5px 0px;
|
||||
}
|
||||
.explanation {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.explanation b {
|
||||
color: #ffbbbb;
|
||||
}
|
||||
.explanation code {
|
||||
color: #bebebe;
|
||||
font-family: 'Roboto', Sans-Serif;
|
||||
}
|
||||
pre {
|
||||
background-color: #282828;
|
||||
margin: 5px 0px 5px 5px;
|
||||
padding: 5px 5px 5px 0px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.lineno {
|
||||
color: #4f4f4f;
|
||||
}
|
||||
.embedimage {
|
||||
max-width: 200px;
|
||||
max-height: 200px;
|
||||
}
|
||||
th { font-weight: normal; }
|
||||
table { border: none; }
|
||||
.metadata {
|
||||
}
|
||||
.location {
|
||||
color: #bebebe;
|
||||
}
|
||||
.message { }
|
||||
.errorspan { color: #33b5e5; }
|
||||
.errorline { color: #33b5e5; }
|
||||
.warningslist { margin-bottom: 20px; }
|
||||
.overview {
|
||||
padding: 10pt;
|
||||
width: 100%;
|
||||
overflow: auto;
|
||||
border-collapse:collapse;
|
||||
}
|
||||
.overview tr {
|
||||
border-top: solid 1px #39393a;
|
||||
border-bottom: solid 1px #39393a;
|
||||
}
|
||||
.countColumn {
|
||||
text-align: right;
|
||||
padding-right: 20px;
|
||||
}
|
||||
.issueColumn {
|
||||
padding-left: 16px;
|
||||
}
|
||||
.categoryColumn {
|
||||
position: relative;
|
||||
left: -50px;
|
||||
padding-top: 20px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
.titleSeparator {
|
||||
background-color: #33b5e5;
|
||||
height: 3px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.categorySeparator {
|
||||
background-color: #33b5e5;
|
||||
height: 3px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.issueSeparator {
|
||||
background-color: #39393a;
|
||||
height: 2px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.location a:link {
|
||||
text-decoration: none;
|
||||
color: #bebebe;
|
||||
}
|
||||
.location a:hover {
|
||||
text-decoration: underline;
|
||||
color: #f3f3f3;
|
||||
}
|
||||
a:link {
|
||||
text-decoration: none;
|
||||
color: #f3f3f3;
|
||||
}
|
||||
a:visited {
|
||||
text-decoration: none;
|
||||
color: #bebebe;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
color: #f3f3f3;
|
||||
}
|
||||
a:active {
|
||||
text-decoration: underline;
|
||||
color: #f3f3f3;
|
||||
}
|
||||
.moreinfo a:link {
|
||||
text-decoration: underline;
|
||||
color: #33b5e5;
|
||||
}
|
||||
.moreinfo a:visited {
|
||||
text-decoration: underline;
|
||||
color: #33b5e5;
|
||||
}
|
||||
.issue a:link {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.issue a:visited {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.id a:link {
|
||||
text-decoration: none;
|
||||
color: #bebebe;
|
||||
}
|
||||
.id a:visited {
|
||||
text-decoration: none;
|
||||
color: #bebebe;
|
||||
}
|
||||
.id a:hover {
|
||||
text-decoration: underline;
|
||||
color: #f3f3f3;
|
||||
}
|
||||
.id a:active {
|
||||
text-decoration: underline;
|
||||
color: #bebebe;
|
||||
}
|
||||
.category a:link {
|
||||
text-decoration: none;
|
||||
color: #bebebe;
|
||||
}
|
||||
.category a:visited {
|
||||
text-decoration: none;
|
||||
color: #bebebe;
|
||||
}
|
||||
.category a:hover {
|
||||
text-decoration: underline;
|
||||
color: #f3f3f3;
|
||||
}
|
||||
.category a:active {
|
||||
text-decoration: underline;
|
||||
color: #bebebe;
|
||||
}
|
||||
button {
|
||||
color: #ffffff;
|
||||
background-color: #353535;
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
border-bottom: none;
|
||||
border-top: solid 1px #5b5b5b;
|
||||
font-family: 'Roboto', Sans-Serif;
|
||||
font-size: 12pt;
|
||||
}
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 638 B |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 422 B |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 337 B |
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
Manifest-Version: 1.0
|
||||
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Manifest-Version: 1.0
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module external.linked.project.id=":hybridlib" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="Hybrid" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
|
||||
<component name="FacetManager">
|
||||
<facet type="android-gradle" name="Android-Gradle">
|
||||
<configuration>
|
||||
<option name="GRADLE_PROJECT_PATH" value=":hybridlib" />
|
||||
</configuration>
|
||||
</facet>
|
||||
<facet type="android" name="Android">
|
||||
<configuration>
|
||||
<option name="SELECTED_BUILD_VARIANT" value="debug" />
|
||||
<option name="SELECTED_TEST_ARTIFACT" value="_android_test_" />
|
||||
<option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
|
||||
<option name="COMPILE_JAVA_TASK_NAME" value="compileDebugSources" />
|
||||
<option name="ASSEMBLE_TEST_TASK_NAME" value="assembleDebugAndroidTest" />
|
||||
<option name="COMPILE_JAVA_TEST_TASK_NAME" value="compileDebugAndroidTestSources" />
|
||||
<afterSyncTasks>
|
||||
<task>generateDebugAndroidTestSources</task>
|
||||
<task>generateDebugSources</task>
|
||||
</afterSyncTasks>
|
||||
<option name="ALLOW_USER_CONFIGURATION" value="false" />
|
||||
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
|
||||
<option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
|
||||
<option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res" />
|
||||
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
|
||||
<option name="LIBRARY_PROJECT" value="true" />
|
||||
</configuration>
|
||||
</facet>
|
||||
</component>
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="false">
|
||||
<output url="file://$MODULE_DIR$/build/intermediates/classes/debug" />
|
||||
<output-test url="file://$MODULE_DIR$/build/intermediates/classes/androidTest/debug" />
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/debug" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/debug" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/debug" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/debug" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/androidTest/debug" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/androidTest/debug" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/androidTest/debug" isTestSource="true" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/androidTest/debug" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/debug/jni" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/aidl" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/coverage-instrumented-classes" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex-cache" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/23.1.0/jars" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jacoco" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/javaResources" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/libs" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/lint" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/ndk" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/pre-dexed" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/proguard" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="Android API 23 Platform" jdkType="Android SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" exported="" name="support-annotations-23.1.0" level="project" />
|
||||
<orderEntry type="library" exported="" name="support-v4-23.1.0" level="project" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -0,0 +1,17 @@
|
||||
# Add project specific ProGuard rules here.
|
||||
# By default, the flags in this file are appended to flags specified
|
||||
# in /Users/lchang/Library/Android/sdk/tools/proguard/proguard-android.txt
|
||||
# You can edit the include path and order by changing the proguardFiles
|
||||
# directive in build.gradle.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
# Add any project specific keep options here:
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package wtf.watrbx.hybrid;
|
||||
|
||||
import android.app.Application;
|
||||
import android.test.ApplicationTestCase;
|
||||
|
||||
/**
|
||||
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
|
||||
*/
|
||||
public class ApplicationTest extends ApplicationTestCase<Application> {
|
||||
public ApplicationTest() {
|
||||
super(Application.class);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="wtf.watrbx.hybrid">
|
||||
|
||||
</manifest>
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
package wtf.watrbx.hybrid;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
|
||||
/**
|
||||
* Created by roblox on 3/5/15.
|
||||
*/
|
||||
public class RBHybridCommand {
|
||||
|
||||
private WeakReference<RBHybridWebView> mOriginWebView;
|
||||
|
||||
private String mModuleID;
|
||||
private String mFunctionName;
|
||||
private JSONObject mParams;
|
||||
private String mCallbackID;
|
||||
|
||||
public RBHybridCommand(WeakReference<RBHybridWebView> origin) {
|
||||
mOriginWebView = origin;
|
||||
}
|
||||
|
||||
public String getModuleID() { return mModuleID; }
|
||||
public void setModuleID(final String moduleID) { mModuleID = moduleID; }
|
||||
|
||||
public String getFunctionName() { return mFunctionName; }
|
||||
public void setFunctionName(final String functionName) { mFunctionName = functionName; }
|
||||
|
||||
public JSONObject getParams() { return mParams; }
|
||||
public void setParams(final JSONObject params) { mParams = params; }
|
||||
|
||||
public String getCallbackID() { return mCallbackID; }
|
||||
public void setCallbackID(final String callbackID) { mCallbackID = callbackID; }
|
||||
|
||||
public Context getContext() {
|
||||
return mOriginWebView.get().getContext();
|
||||
}
|
||||
|
||||
public void executeCallback(boolean success, final JSONObject params) {
|
||||
mOriginWebView.get().executeNativeCallback(this.mCallbackID, success, params);
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
package wtf.watrbx.hybrid;
|
||||
|
||||
import org.json.JSONObject;
|
||||
|
||||
public class RBHybridEvent {
|
||||
private String mModuleName;
|
||||
private String mName;
|
||||
private JSONObject mParams;
|
||||
|
||||
public String getModuleName() { return mModuleName; }
|
||||
public void setModuleName(final String module) { mModuleName = module; }
|
||||
|
||||
public String getName() { return mName; }
|
||||
public void setName(final String name) { mName = name; }
|
||||
|
||||
public JSONObject getParams() { return mParams; }
|
||||
public void setParams(final JSONObject params) { mParams = params; }
|
||||
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
package wtf.watrbx.hybrid;
|
||||
|
||||
import android.util.Log;
|
||||
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
/**
|
||||
* Created by roblox on 3/5/15.
|
||||
*/
|
||||
public class RBHybridModule {
|
||||
|
||||
static final String TAG = "RBHybridModule";
|
||||
protected static final String NOTIFICATION_MANAGER_POST_ACTION = "wtf.watrbx.android.notificationmanager.POST";
|
||||
protected static final String NOTIFICATION_MANAGER_CALLBACK_ACTION = "wtf.watrbx.hybrid.broadcastreceiver.RESPONSE";
|
||||
protected static final String CALLBACK_ACTION_TOP_BAR = ".getTopBarHeight";
|
||||
|
||||
protected interface ModuleFunction {
|
||||
abstract void execute(final RBHybridCommand command);
|
||||
}
|
||||
|
||||
private String mModuleID;
|
||||
private HashMap<String, ModuleFunction> mFunctions;
|
||||
|
||||
public RBHybridModule(String moduleID) {
|
||||
mModuleID = moduleID;
|
||||
|
||||
mFunctions = new HashMap<String, ModuleFunction>();
|
||||
|
||||
this.registerFunction("supports", new SupportsFunction());
|
||||
}
|
||||
|
||||
public String getModuleID() {
|
||||
return mModuleID;
|
||||
}
|
||||
|
||||
protected void registerFunction(final String name, ModuleFunction function) {
|
||||
mFunctions.put(name, function);
|
||||
}
|
||||
|
||||
protected boolean hasFunction(final String functionName) {
|
||||
return mFunctions.containsKey(functionName);
|
||||
}
|
||||
|
||||
// Implement this method in your module
|
||||
public void execute(final RBHybridCommand command) {
|
||||
String functionName = command.getFunctionName();
|
||||
|
||||
ModuleFunction function = mFunctions.get(functionName);
|
||||
if(function != null) {
|
||||
function.execute(command);
|
||||
} else {
|
||||
Log.e(TAG, "Cannot find function " + functionName + " in module " + mModuleID);
|
||||
command.executeCallback(false, null);
|
||||
}
|
||||
}
|
||||
|
||||
protected void broadcastEvent(final String eventName, final JSONObject eventParams) {
|
||||
|
||||
}
|
||||
|
||||
private class SupportsFunction implements ModuleFunction {
|
||||
public void execute(final RBHybridCommand command) {
|
||||
String functionName = command.getParams().optString("functionName", "");
|
||||
boolean functionExists = RBHybridModule.this.hasFunction(functionName);
|
||||
command.executeCallback(functionExists, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
+239
@@ -0,0 +1,239 @@
|
||||
package wtf.watrbx.hybrid;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.os.Build;
|
||||
import android.os.Handler;
|
||||
import android.support.v4.content.LocalBroadcastManager;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.webkit.JavascriptInterface;
|
||||
import android.webkit.WebChromeClient;
|
||||
import android.webkit.WebView;
|
||||
|
||||
import wtf.watrbx.hybrid.modules.RBHybridModuleAnalytics;
|
||||
import wtf.watrbx.hybrid.modules.RBHybridModuleChat;
|
||||
import wtf.watrbx.hybrid.modules.RBHybridModuleDialogs;
|
||||
import wtf.watrbx.hybrid.modules.RBHybridModuleGame;
|
||||
import wtf.watrbx.hybrid.modules.RBHybridModuleInput;
|
||||
import wtf.watrbx.hybrid.modules.RBHybridModuleSocial;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedList;
|
||||
|
||||
/**
|
||||
*
|
||||
* RBHybridWebView
|
||||
*
|
||||
*/
|
||||
public class RBHybridWebView extends WebView {
|
||||
|
||||
private static final String TAG = "RBHybrid";
|
||||
|
||||
private WeakReference<RBHybridWebView> mWeakSelf;
|
||||
static private LinkedList<WeakReference<RBHybridWebView>> mWebViewInstances = new LinkedList<>();
|
||||
|
||||
// WebView settings
|
||||
private String mUserAgent;
|
||||
private Handler mMainThreadHandler;
|
||||
|
||||
private LocalBroadcastManager localBroadcastManager = LocalBroadcastManager.getInstance(getContext());
|
||||
|
||||
// List of modules. This list is common for all webviews
|
||||
static private HashMap<String, RBHybridModule> mModules;
|
||||
|
||||
// JSBridge
|
||||
private class JSBridge {
|
||||
|
||||
@JavascriptInterface
|
||||
public void executeRoblox(final String query) {
|
||||
|
||||
// Run on main thread
|
||||
mMainThreadHandler.post( new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
processCommand(query);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public RBHybridWebView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
|
||||
super(context, attrs, defStyleAttr); // passing in defStyleRes is only available in API 21
|
||||
|
||||
this.init();
|
||||
}
|
||||
|
||||
public RBHybridWebView(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
this.init();
|
||||
}
|
||||
|
||||
public RBHybridWebView(Context context, AttributeSet attrs, int defStyleAttr) {
|
||||
super(context, attrs, defStyleAttr);
|
||||
this.init();
|
||||
}
|
||||
|
||||
public RBHybridWebView(Context context) {
|
||||
super(context);
|
||||
this.init();
|
||||
}
|
||||
|
||||
private void init() {
|
||||
// Register webview instance
|
||||
mWeakSelf = new WeakReference<RBHybridWebView>(this);
|
||||
mWebViewInstances.add(mWeakSelf);
|
||||
|
||||
// Main thread handler
|
||||
mMainThreadHandler = new Handler( this.getContext().getMainLooper() );
|
||||
|
||||
// Initialize modules
|
||||
this.registerModules();
|
||||
|
||||
// Inject a JS interface into the client code
|
||||
JSBridge bridge = new JSBridge();
|
||||
this.addJavascriptInterface(bridge, "__globalRobloxAndroidBridge__");
|
||||
|
||||
// TODO: Remove
|
||||
this.setWebChromeClient(new WebChromeClient());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void finalize() throws Throwable {
|
||||
mWebViewInstances.remove(mWeakSelf);
|
||||
super.finalize();
|
||||
}
|
||||
|
||||
private void registerModule(RBHybridModule module) {
|
||||
mModules.put(module.getModuleID(), module);
|
||||
}
|
||||
|
||||
//
|
||||
private void registerModules() {
|
||||
if(mModules == null) {
|
||||
mModules = new HashMap<String, RBHybridModule>();
|
||||
|
||||
registerModule( new RBHybridModuleSocial() );
|
||||
registerModule( new RBHybridModuleDialogs() );
|
||||
registerModule( new RBHybridModuleAnalytics());
|
||||
registerModule( new RBHybridModuleGame(localBroadcastManager) );
|
||||
registerModule(new RBHybridModuleChat(localBroadcastManager));
|
||||
registerModule( new RBHybridModuleInput(this, localBroadcastManager));
|
||||
}
|
||||
}
|
||||
|
||||
// This function should always be executed on the main thread
|
||||
private void processCommand(final String query) {
|
||||
try {
|
||||
RBHybridCommand command = new RBHybridCommand( new WeakReference<RBHybridWebView>(this) );
|
||||
|
||||
JSONObject jsonObject = new JSONObject(query);
|
||||
|
||||
command.setModuleID( jsonObject.getString("moduleID") );
|
||||
command.setFunctionName(jsonObject.getString("functionName"));
|
||||
command.setParams( jsonObject.getJSONObject("params") );
|
||||
command.setCallbackID( jsonObject.optString("callbackID") );
|
||||
|
||||
RBHybridModule module = mModules.get( command.getModuleID() );
|
||||
if(module != null) {
|
||||
module.execute(command);
|
||||
} else {
|
||||
Log.e(TAG, "Couldn't find module with ID: " + command.getModuleID());
|
||||
}
|
||||
} catch(JSONException jsonExecption) {
|
||||
Log.e(TAG, "There was an error parsing the JSON command: " + jsonExecption.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadUrl(java.lang.String url)
|
||||
{
|
||||
// Load the url
|
||||
//super.loadUrl("http://172.17.250.128:8080/index.html");
|
||||
super.loadUrl(url);
|
||||
}
|
||||
|
||||
public void executeNativeCallback(final String callbackID, boolean success, JSONObject params)
|
||||
{
|
||||
String strParams = params != null ? params.toString() : "{}";
|
||||
|
||||
final String jsExec = String.format( /*"window.Roblox.Hybrid.Bridge.nativeCallback('%s', %s, %s);",*/
|
||||
"if (window.Roblox.Hybrid &&" +
|
||||
" window.Roblox.Hybrid.Bridge.nativeCallback &&" +
|
||||
" typeof window.Roblox.Hybrid.Bridge.nativeCallback === \"function\") { window.Roblox.Hybrid.Bridge.nativeCallback('%s', %s, %s); }",
|
||||
callbackID,
|
||||
success ? "true" : "false",
|
||||
strParams
|
||||
);
|
||||
|
||||
if( mMainThreadHandler.getLooper().getThread() == Thread.currentThread() ) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT)
|
||||
this.evaluateJavascript(jsExec, null);
|
||||
else
|
||||
{
|
||||
String js = "javascript:" + jsExec;
|
||||
this.loadUrl(js);
|
||||
}
|
||||
} else {
|
||||
mMainThreadHandler.post( new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT)
|
||||
RBHybridWebView.this.evaluateJavascript(jsExec, null);
|
||||
else {
|
||||
String js = "javascript:" + jsExec;
|
||||
RBHybridWebView.this.loadUrl(js);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Broadcast event to all the webviews
|
||||
static public void broadcastEvent(final RBHybridEvent event) {
|
||||
for(int i = 0; i < mWebViewInstances.size(); i++) {
|
||||
RBHybridWebView webview = mWebViewInstances.get(i).get();
|
||||
webview.emitEvent(event);
|
||||
}
|
||||
}
|
||||
|
||||
// Fire an event in this webview
|
||||
public void emitEvent(final RBHybridEvent event) {
|
||||
|
||||
String strParams = event.getParams() != null ? event.getParams().toString() : "{}";
|
||||
|
||||
final String jsExec = String.format(/*"window.Roblox.Hybrid.Bridge.emitEvent('%s', '%s', %s);",(*/
|
||||
"if (window.Roblox.Hybrid && window.Roblox.Hybrid.Bridge.emitEvent && typeof window.Roblox.Hybrid.Bridge.emitEvent === \"function\") { window.Roblox.Hybrid.Bridge.emitEvent('%s', '%s', %s); }",
|
||||
event.getModuleName(),
|
||||
event.getName(),
|
||||
strParams
|
||||
);
|
||||
|
||||
if( mMainThreadHandler.getLooper().getThread() == Thread.currentThread() ) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT)
|
||||
this.evaluateJavascript(jsExec, null);
|
||||
else
|
||||
{
|
||||
String js = "javascript:" + jsExec;
|
||||
this.loadUrl(js);
|
||||
}
|
||||
} else {
|
||||
mMainThreadHandler.post( new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT)
|
||||
RBHybridWebView.this.evaluateJavascript(jsExec, null);
|
||||
else {
|
||||
String js = "javascript:" + jsExec;
|
||||
RBHybridWebView.this.loadUrl(js);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package wtf.watrbx.hybrid.modules;
|
||||
|
||||
import wtf.watrbx.hybrid.RBHybridCommand;
|
||||
import wtf.watrbx.hybrid.RBHybridModule;
|
||||
|
||||
/**
|
||||
* Created by roblox on 3/6/15.
|
||||
*/
|
||||
public class RBHybridModuleAnalytics extends RBHybridModule {
|
||||
private static final String MODULE_ID = "Analytics";
|
||||
|
||||
public RBHybridModuleAnalytics() {
|
||||
super(MODULE_ID);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(RBHybridCommand command) {
|
||||
command.executeCallback(true, null);
|
||||
}
|
||||
}
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
package wtf.watrbx.hybrid.modules;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.IntentFilter;
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.content.LocalBroadcastManager;
|
||||
import android.util.Log;
|
||||
|
||||
import wtf.watrbx.hybrid.RBHybridCommand;
|
||||
import wtf.watrbx.hybrid.RBHybridModule;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
/**
|
||||
* Created by mcritelli on 11/10/15.
|
||||
*/
|
||||
public class RBHybridModuleChat extends RBHybridModule {
|
||||
private static final String MODULE_ID = "Chat";
|
||||
|
||||
// @see NotificationManager.java
|
||||
private static final int NOTIFICATION_MANAGER_NEW_UNREAD_MESSAGE = 19;
|
||||
private static final int NOTIFICATION_MANAGER_REQUEST_ACTION_BAR_HEIGHT = 107;
|
||||
private static final int NOTIFICATION_MANAGER_REQUEST_KEYBOARD_HEIGHT = 108;
|
||||
private LocalBroadcastManager localBroadcastManager;
|
||||
|
||||
public RBHybridModuleChat(LocalBroadcastManager localBroadcastManager) {
|
||||
super(MODULE_ID);
|
||||
this.localBroadcastManager = localBroadcastManager;
|
||||
|
||||
this.registerFunction("newMessageNotification", new NewMessageNotification());
|
||||
this.registerFunction("getTopBarHeight", new GetTopBarHeight());
|
||||
this.registerFunction("getKeyboardHeight", new GetKeyboardHeight());
|
||||
}
|
||||
|
||||
private class NewMessageNotification implements ModuleFunction {
|
||||
@Override
|
||||
public void execute(RBHybridCommand command) {
|
||||
JSONObject params = command.getParams();
|
||||
if (params != null) {
|
||||
Bundle bParam = new Bundle();
|
||||
|
||||
try {
|
||||
Object numUnreadMessages = params.get("numUnreadMessages");
|
||||
if (numUnreadMessages instanceof String)
|
||||
bParam.putInt("numUnreadMessages", Integer.parseInt((String)numUnreadMessages));
|
||||
else if (numUnreadMessages instanceof Integer)
|
||||
bParam.putInt("numUnreadMessages", params.getInt("numUnreadMessages"));
|
||||
else
|
||||
bParam.putInt("numUnreadMessages", 0);
|
||||
|
||||
Intent broadcast = new Intent();
|
||||
broadcast.setAction(NOTIFICATION_MANAGER_POST_ACTION);
|
||||
broadcast.putExtra("notificationId", NOTIFICATION_MANAGER_NEW_UNREAD_MESSAGE);
|
||||
broadcast.putExtra("userParams", bParam);
|
||||
localBroadcastManager.sendBroadcast(broadcast);
|
||||
|
||||
command.executeCallback(true, null);
|
||||
|
||||
} catch (JSONException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private class GetTopBarHeight implements ModuleFunction {
|
||||
@Override
|
||||
public void execute(final RBHybridCommand command) {
|
||||
Log.i("SAM", "Inside GetTopBarHeight Java");
|
||||
Intent broadcast = new Intent();
|
||||
broadcast.setAction(NOTIFICATION_MANAGER_POST_ACTION);
|
||||
broadcast.putExtra("notificationId", NOTIFICATION_MANAGER_REQUEST_ACTION_BAR_HEIGHT);
|
||||
localBroadcastManager.sendBroadcast(broadcast);
|
||||
|
||||
localBroadcastManager.registerReceiver(new BroadcastReceiver() {
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
Bundle data = intent.getBundleExtra("returnData");
|
||||
int height = 0;
|
||||
if (data != null) {
|
||||
height = data.getInt("topBarHeight", 0);
|
||||
}
|
||||
JSONObject j = new JSONObject();
|
||||
try {
|
||||
j.put("topBarHeight", height);
|
||||
} catch (JSONException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
command.executeCallback(true, j);
|
||||
}
|
||||
}, new IntentFilter(NOTIFICATION_MANAGER_CALLBACK_ACTION + CALLBACK_ACTION_TOP_BAR));
|
||||
}
|
||||
}
|
||||
|
||||
private class GetKeyboardHeight implements ModuleFunction {
|
||||
@Override
|
||||
public void execute(RBHybridCommand command) {
|
||||
Intent broadcast = new Intent();
|
||||
broadcast.setAction(NOTIFICATION_MANAGER_POST_ACTION);
|
||||
broadcast.putExtra("notificationId", NOTIFICATION_MANAGER_REQUEST_KEYBOARD_HEIGHT);
|
||||
localBroadcastManager.sendBroadcast(broadcast);
|
||||
JSONObject j = new JSONObject();
|
||||
try {
|
||||
j.put("keyboardHeight", 50);
|
||||
} catch (JSONException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
command.executeCallback(true, j);
|
||||
}
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package wtf.watrbx.hybrid.modules;
|
||||
|
||||
import wtf.watrbx.hybrid.RBHybridCommand;
|
||||
import wtf.watrbx.hybrid.RBHybridModule;
|
||||
|
||||
/**
|
||||
* Created by roblox on 3/6/15.
|
||||
*/
|
||||
public class RBHybridModuleDialogs extends RBHybridModule {
|
||||
private static final String MODULE_ID = "Dialogs";
|
||||
|
||||
public RBHybridModuleDialogs() {
|
||||
super(MODULE_ID);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(RBHybridCommand command) {
|
||||
command.executeCallback(false, null);
|
||||
}
|
||||
}
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
package wtf.watrbx.hybrid.modules;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.content.LocalBroadcastManager;
|
||||
|
||||
import wtf.watrbx.hybrid.RBHybridCommand;
|
||||
import wtf.watrbx.hybrid.RBHybridModule;
|
||||
|
||||
import org.json.JSONObject;
|
||||
|
||||
/**
|
||||
* Created by roblox on 3/6/15.
|
||||
*/
|
||||
public class RBHybridModuleGame extends RBHybridModule {
|
||||
|
||||
private static final String MODULE_ID = "Game";
|
||||
|
||||
|
||||
// @see NotificationManager.REQUEST_START_PLACEID == 101
|
||||
private static final int NOTIFICATION_MANAGER_REQUEST_START_PLACEID = 101;
|
||||
private static final int NOTIFICATION_MANAGER_REQUEST_START_PLACEID_PARTY = 106;
|
||||
private LocalBroadcastManager localBroadcastManager;
|
||||
|
||||
public RBHybridModuleGame(LocalBroadcastManager localBroadcastManager) {
|
||||
super(MODULE_ID);
|
||||
this.localBroadcastManager = localBroadcastManager;
|
||||
|
||||
this.registerFunction("launchPartyForPlaceId", new LaunchGamePartyJoin());
|
||||
this.registerFunction("startWithPlaceID", new StartWithPlaceId());
|
||||
|
||||
}
|
||||
|
||||
private class StartWithPlaceId implements ModuleFunction {
|
||||
@Override
|
||||
public void execute(RBHybridCommand command) {
|
||||
String strPlaceID = command.getParams().optString("placeID");
|
||||
if(strPlaceID != null) {
|
||||
Bundle userParams = new Bundle();
|
||||
userParams.putInt("placeId", Integer.parseInt(strPlaceID));
|
||||
userParams.putInt("requestType", 0);
|
||||
|
||||
Intent broadcast = new Intent();
|
||||
broadcast.setAction(NOTIFICATION_MANAGER_POST_ACTION);
|
||||
broadcast.putExtra("notificationId", NOTIFICATION_MANAGER_REQUEST_START_PLACEID);
|
||||
broadcast.putExtra("userParams", userParams);
|
||||
localBroadcastManager.sendBroadcast(broadcast);
|
||||
|
||||
command.executeCallback(true, null);
|
||||
} else {
|
||||
command.executeCallback(false, null);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
private class LaunchGamePartyJoin implements ModuleFunction {
|
||||
@Override
|
||||
public void execute(RBHybridCommand command) {
|
||||
JSONObject params = command.getParams();
|
||||
|
||||
String placeId = params.optString("placeId", "");
|
||||
Bundle bParam = new Bundle();
|
||||
bParam.putString("placeId", placeId);
|
||||
bParam.putInt("requestType", 4);
|
||||
|
||||
Intent broadcast = new Intent();
|
||||
broadcast.setAction(NOTIFICATION_MANAGER_POST_ACTION);
|
||||
broadcast.putExtra("notificationId", NOTIFICATION_MANAGER_REQUEST_START_PLACEID_PARTY);
|
||||
broadcast.putExtra("userParams", bParam);
|
||||
localBroadcastManager.sendBroadcast(broadcast);
|
||||
|
||||
command.executeCallback(true, null);
|
||||
}
|
||||
};
|
||||
}
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
package wtf.watrbx.hybrid.modules;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.graphics.Rect;
|
||||
import android.support.v4.content.LocalBroadcastManager;
|
||||
import android.util.DisplayMetrics;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.view.ViewTreeObserver;
|
||||
|
||||
import wtf.watrbx.hybrid.RBHybridEvent;
|
||||
import wtf.watrbx.hybrid.RBHybridModule;
|
||||
import wtf.watrbx.hybrid.RBHybridWebView;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
public class RBHybridModuleInput extends RBHybridModule{
|
||||
private static final String TAG = "HybridInput";
|
||||
|
||||
private static final String MODULE_ID = "Input";
|
||||
private LocalBroadcastManager localBroadcastManager;
|
||||
|
||||
private static final String ON_KEYBOARD_SHOW_EVENT_ID = "onKeyboardShow";
|
||||
private static final String ON_KEYBOARD_HIDE_EVENT_ID = "onKeyboardHide";
|
||||
static public final int NOTIFICATION_MANAGER_REQUEST_HIDE_NAV_BAR = 109;
|
||||
static public final int NOTIFICATION_MANAGER_REQUEST_SHOW_NAV_BAR = 110;
|
||||
|
||||
public RBHybridModuleInput(RBHybridWebView hybridView, LocalBroadcastManager localBroadcastManager) {
|
||||
super(MODULE_ID);
|
||||
this.localBroadcastManager = localBroadcastManager;
|
||||
|
||||
initKeyboardListener(hybridView);
|
||||
}
|
||||
|
||||
private static boolean isKeyboardShowing = false;
|
||||
|
||||
private void initKeyboardListener(RBHybridWebView hybridView) {
|
||||
final View rootView = hybridView.getRootView();
|
||||
hybridView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
|
||||
@Override
|
||||
public void onGlobalLayout() {
|
||||
/* 128dp = 32dp * 4, minimum button height 32dp and generic 4 rows soft keyboard */
|
||||
final int SOFT_KEYBOARD_HEIGHT_DP_THRESHOLD = 128;
|
||||
|
||||
Rect r = new Rect();
|
||||
rootView.getWindowVisibleDisplayFrame(r);
|
||||
DisplayMetrics dm = rootView.getResources().getDisplayMetrics();
|
||||
|
||||
/* heightDiff = rootView height - status bar height (r.top) - visible frame height (r.bottom - r.top) */
|
||||
int heightDiff = rootView.getBottom() - r.bottom;
|
||||
|
||||
/* Threshold size: dp to pixels, multiply with display density */
|
||||
boolean didKeyboardChange = heightDiff > SOFT_KEYBOARD_HEIGHT_DP_THRESHOLD * dm.density;
|
||||
RBHybridEvent event = new RBHybridEvent();
|
||||
event.setModuleName(MODULE_ID);
|
||||
JSONObject j = new JSONObject();
|
||||
try {
|
||||
j.put("keyboardHeight", heightDiff);
|
||||
event.setParams(j);
|
||||
} catch (JSONException e) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (!didKeyboardChange && isKeyboardShowing) {
|
||||
isKeyboardShowing = false;
|
||||
event.setName(ON_KEYBOARD_HIDE_EVENT_ID);
|
||||
|
||||
RBHybridWebView.broadcastEvent(event);
|
||||
} else if (didKeyboardChange && !isKeyboardShowing) {
|
||||
isKeyboardShowing = true;
|
||||
event.setName(ON_KEYBOARD_SHOW_EVENT_ID);
|
||||
|
||||
RBHybridWebView.broadcastEvent(event);
|
||||
}
|
||||
// Log.v(TAG, "isKeyboardShown ? " + isKeyboardShown + ", heightDiff:" + heightDiff + ", density:" + dm.density
|
||||
// + "root view height:" + rootView.getHeight() + ", rect:" + r);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
package wtf.watrbx.hybrid.modules;
|
||||
|
||||
import android.content.Intent;
|
||||
|
||||
import wtf.watrbx.hybrid.RBHybridCommand;
|
||||
import wtf.watrbx.hybrid.RBHybridModule;
|
||||
|
||||
import org.json.JSONObject;
|
||||
|
||||
/**
|
||||
* Created by roblox on 3/6/15.
|
||||
*/
|
||||
public class RBHybridModuleSocial extends RBHybridModule {
|
||||
|
||||
private static final String MODULE_ID = "Social";
|
||||
|
||||
public RBHybridModuleSocial() {
|
||||
super(MODULE_ID);
|
||||
|
||||
this.registerFunction("presentShareDialog", new PresentShareDialog());
|
||||
}
|
||||
|
||||
private class PresentShareDialog implements ModuleFunction {
|
||||
@Override
|
||||
public void execute(RBHybridCommand command) {
|
||||
JSONObject params = command.getParams();
|
||||
|
||||
String text = params.optString("text", "");
|
||||
String link = params.optString("link");
|
||||
String imageURL = params.optString("imageURL");
|
||||
|
||||
Intent sendIntent = new Intent();
|
||||
sendIntent.setAction(Intent.ACTION_SEND);
|
||||
sendIntent.setType("text/plain");
|
||||
sendIntent.putExtra(Intent.EXTRA_TEXT, text + " " + link);
|
||||
sendIntent.putExtra(Intent.EXTRA_TITLE, text);
|
||||
sendIntent.putExtra(Intent.EXTRA_SUBJECT, text);
|
||||
|
||||
Intent chooserIntent = Intent.createChooser(sendIntent, null);
|
||||
command.getContext().startActivity(chooserIntent);
|
||||
|
||||
command.executeCallback(true, null);
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
<resources>
|
||||
<string name="hybrid_library_name">HybridLibrary</string>
|
||||
</resources>
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package wtf.watrbx.hybrid;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
* To work on unit tests, switch the Test Artifact in the Build Variants view.
|
||||
*/
|
||||
public class ExampleUnitTest {
|
||||
@Test
|
||||
public void addition_isCorrect() throws Exception {
|
||||
assertEquals(4, 2 + 2);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
include ':hybridlib'
|
||||
Reference in New Issue
Block a user