Skip to content

Commit

Permalink
Build Tools and Target API 28
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Guyon committed Nov 2, 2018
1 parent ac6aa64 commit a7760f3
Show file tree
Hide file tree
Showing 12 changed files with 62 additions and 20 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.1'
classpath 'com.android.tools.build:gradle:3.2.1'

// 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 gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Apr 24 15:23:23 CEST 2018
#Fri Nov 02 15:20:16 CET 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
8 changes: 4 additions & 4 deletions smartgl/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
compileSdkVersion 28
buildToolsVersion '28.0.3'

defaultConfig {
minSdkVersion 14
targetSdkVersion 27
targetSdkVersion 28
versionCode 29
versionName "1.1.7"
}
Expand All @@ -20,5 +20,5 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:support-annotations:27.1.1'
implementation 'com.android.support:support-annotations:28.0.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package fr.arnaudguyon.smartgl.opengl;

import junit.framework.Assert;
import fr.arnaudguyon.smartgl.tools.Assert;

/**
* Created by Arnaud Guyon on 07/05/2015.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import android.util.Log;

import junit.framework.Assert;
import fr.arnaudguyon.smartgl.tools.Assert;

/**
* Created by Arnaud Guyon on 09/05/2015.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@
import android.os.SystemClock;
import android.util.SparseArray;

import junit.framework.Assert;

import fr.arnaudguyon.smartgl.R;
import fr.arnaudguyon.smartgl.math.Vector2D;
import fr.arnaudguyon.smartgl.tools.Assert;

/**
* Base class for the Renderer. Handles the list of the RenderObject to display, the camera.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@

import java.util.Vector;

import junit.framework.Assert;
import android.opengl.GLES20;

import fr.arnaudguyon.smartgl.tools.Assert;

public class RenderPass {
private final static int NOPROGRAM = 0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
*/
package fr.arnaudguyon.smartgl.opengl;

import junit.framework.Assert;
import android.opengl.GLES20;
import android.util.Log;

import fr.arnaudguyon.smartgl.tools.Assert;

abstract public class Shader {

private static final String TAG = "Shader";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import android.opengl.GLES20;

import junit.framework.Assert;
import fr.arnaudguyon.smartgl.tools.Assert;

/**
* Created by aguyon on 18.01.17.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

import android.opengl.GLES20;

import junit.framework.Assert;

import java.nio.FloatBuffer;

import fr.arnaudguyon.smartgl.tools.Assert;

/**
* Created by aguyon on 18.01.17.
*/
Expand Down
41 changes: 41 additions & 0 deletions smartgl/src/main/java/fr/arnaudguyon/smartgl/tools/Assert.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package fr.arnaudguyon.smartgl.tools;

public class Assert {

public static void assertTrue(boolean condition) {
assertTrue("", condition);
}
public static void assertTrue(String text, boolean condition) {
if (!condition) {
doAssert(text);
}
}
public static void assertNotNull(Object object) {
assertNotNull("", object);
}
public static void assertNotNull(String text, Object object) {
if (object == null) {
doAssert(text);
}
}

public static void assertEquals(Object object1, Object object2) {
if (object1 == null) {
if (object2 != null) {
doAssert("");
}
} else {
if (object2 == null) {
doAssert("");
} else {
if (!object1.equals(object2)) {
doAssert("");
}
}
}
}

private static void doAssert(String text) {
throw new RuntimeException(text);
}
}
8 changes: 4 additions & 4 deletions smartglapp/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
compileSdkVersion 28
buildToolsVersion '28.0.3'

defaultConfig {
applicationId "fr.arnaudguyon.smartglapp"
minSdkVersion 14
targetSdkVersion 27
targetSdkVersion 28
versionCode 15
versionName "1.0.3"
}
Expand All @@ -21,6 +21,6 @@ android {

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:support-annotations:27.1.1'
implementation 'com.android.support:support-annotations:28.0.0'
implementation project(':smartgl')
}

0 comments on commit a7760f3

Please sign in to comment.