Skip to content

Commit

Permalink
release 1.9.9
Browse files Browse the repository at this point in the history
  • Loading branch information
litianping committed May 10, 2019
1 parent 31dcc65 commit 34b3806
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 22 deletions.
4 changes: 4 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# LibgdxTextureView

Libgdx use TextureView Rendering,修改Libgdx的渲染View为TextureView,可以跟原生的view进行透明层叠,Libgdx版本为1.9.8.
Libgdx use TextureView Rendering,修改Libgdx的渲染View为TextureView,可以跟原生的view进行透明层叠,Libgdx版本为1.9.9

博客地址: [博客地址](https://skyhand.blog.csdn.net/article/details/88540497)

Expand Down
10 changes: 5 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ dependencies {


//引入libgdx
implementation 'com.badlogicgames.gdx:gdx:1.9.8'
//api "com.badlogicgames.gdx:gdx-backend-android:1.9.8"
implementation 'com.badlogicgames.gdx:gdx:1.9.9'
//api "com.badlogicgames.gdx:gdx-backend-android:1.9.9"

natives "com.badlogicgames.gdx:gdx-platform:1.9.8:natives-armeabi"
natives "com.badlogicgames.gdx:gdx-platform:1.9.8:natives-armeabi-v7a"
natives "com.badlogicgames.gdx:gdx-platform:1.9.8:natives-x86_64"
natives "com.badlogicgames.gdx:gdx-platform:1.9.9:natives-armeabi"
natives "com.badlogicgames.gdx:gdx-platform:1.9.9:natives-armeabi-v7a"
natives "com.badlogicgames.gdx:gdx-platform:1.9.9:natives-x86_64"


implementation project(':gdx-backend-android-textureview')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class ShowActivity : AndroidApplication() {

companion object {
fun start(context: Context, useTextureView: Boolean, isTranlate: Boolean = true) {
var intent = Intent(context, ShowActivity::class.java)
val intent = Intent(context, ShowActivity::class.java)
intent.putExtra("USETEXTUREVIEW", useTextureView)
intent.putExtra("ISTRANLATE", isTranlate)
context.startActivity(intent)
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.3.20'
ext.kotlin_version = '1.3.31'
repositories {
google()
jcenter()

}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.android.tools.build:gradle:3.4.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
4 changes: 2 additions & 2 deletions gdx-backend-android-textureview/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ android {

dependencies {
//compileOnly fileTree(dir: 'libs', include: ['*.jar'])
compileOnly "com.badlogicgames.gdx:gdx:1.9.8"
compileOnly "com.badlogicgames.gdx:gdx:1.9.9"

compileOnly 'com.android.support:appcompat-v7:28.0.0'
}
Expand All @@ -33,7 +33,7 @@ task sourcesJar(type: Jar) {


task makeJar(type: Copy) {
def name = "Libgdx-Backend-Android-TextureView-1.9.8.jar"
def name = "Libgdx-Backend-Android-TextureView-1.9.9.jar"
delete 'build/libs/' + name
from('build/intermediates/packaged-classes/release/')
into('build/libs/')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,15 +307,15 @@ public boolean isTouched(int pointer) {
}


// @Override
// public float getPressure () {
// return getPressure(0);
// }
@Override
public float getPressure() {
return getPressure(0);
}

// @Override
// public float getPressure (int pointer) {
// return pressure[pointer];
// }
@Override
public float getPressure(int pointer) {
return pressure[pointer];
}


@Override
Expand Down Expand Up @@ -818,7 +818,7 @@ public boolean isPeripheralAvailable(Peripheral peripheral) {
}
if (peripheral == Peripheral.MultitouchScreen) return hasMultitouch;
if (peripheral == Peripheral.RotationVector) return rotationVectorAvailable;
//if (peripheral == Peripheral.Pressure) return true;
if (peripheral == Peripheral.Pressure) return true;
return false;
}

Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Mar 13 17:07:52 CST 2019
#Fri May 10 10:45:15 GMT+08:00 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
Binary file not shown.

0 comments on commit 34b3806

Please sign in to comment.