Browse Source

Minor adjustments for 0.11.0-alpha1

Martin Felis 7 years ago
parent
commit
408778fb8f

+ 3 - 3
app/build.gradle

@@ -5,14 +5,14 @@ android {
     buildToolsVersion "26.0.2"
     defaultConfig {
         applicationId "org.love2d.android"
-        versionCode 22
-        versionName "0.10.2"
+        versionCode 23
+        versionName "0.11.0-alpha1"
         minSdkVersion 10
         targetSdkVersion 25
     }
     buildTypes {
         release {
-            minifyEnabled false
+            minifyEnabled true
             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
         }
     }

+ 1 - 9
app/src/main/AndroidManifest.xml

@@ -30,13 +30,7 @@
         <intent-filter>
           <action android:name="android.intent.action.VIEW" />
           <category android:name="android.intent.category.DEFAULT" />
-          <data android:scheme="file" />
-          <data android:scheme="content" />
-          <data android:mimeType="application/x-love-game" />
-        </intent-filter>
-        <intent-filter>
-          <action android:name="android.intent.action.VIEW" />
-          <category android:name="android.intent.category.DEFAULT" />
+          <category android:name="android.intent.category.BROWSABLE" />
           <data android:scheme="file" />
           <data android:mimeType="*/*" />
           <data android:pathPattern=".*\\.love" />
@@ -52,12 +46,10 @@
           <category android:name="android.intent.category.BROWSABLE" />
           <data android:scheme="http"
             android:host="*"
-            android:pathPrefix="*"
             android:mimeType="*/*"
             android:pathPattern=".*\\.love" />
           <data android:scheme="https"
             android:host="*"
-            android:pathPrefix="*"
             android:mimeType="*/*"
             android:pathPattern=".*\\.love" />
         </intent-filter>

+ 5 - 0
build.gradle

@@ -3,6 +3,7 @@
 buildscript {
     repositories {
         jcenter()
+        google()
     }
     dependencies {
         classpath 'com.android.tools.build:gradle:3.0.1'
@@ -15,3 +16,7 @@ buildscript {
 task clean(type: Delete) {
     delete rootProject.buildDir
 }
+
+repositories {
+    google()
+}

+ 0 - 9
love/src/jni/love/src/modules/graphics/Texture.cpp

@@ -27,15 +27,6 @@
 #include <cmath>
 #include <algorithm>
 
-#ifdef LOVE_ANDROID
-// log2 is not declared in the math.h shipped with the Android NDK
-static inline double log2(double n)
-{
-	// log(n)/log(2) is log2.
-	return std::log(n) / std::log(2);
-}
-#endif
-
 
 namespace love
 {