mirror of
https://github.com/love2d/love-android.git
synced 2026-08-12 08:31:04 +02:00
Minor adjustments for 0.11.0-alpha1
This commit is contained in:
+3
-3
@@ -5,14 +5,14 @@ android {
|
|||||||
buildToolsVersion "26.0.2"
|
buildToolsVersion "26.0.2"
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "org.love2d.android"
|
applicationId "org.love2d.android"
|
||||||
versionCode 22
|
versionCode 23
|
||||||
versionName "0.10.2"
|
versionName "0.11.0-alpha1"
|
||||||
minSdkVersion 10
|
minSdkVersion 10
|
||||||
targetSdkVersion 25
|
targetSdkVersion 25
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
minifyEnabled false
|
minifyEnabled true
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,13 +30,7 @@
|
|||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.VIEW" />
|
<action android:name="android.intent.action.VIEW" />
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
<data android:scheme="file" />
|
<category android:name="android.intent.category.BROWSABLE" />
|
||||||
<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" />
|
|
||||||
<data android:scheme="file" />
|
<data android:scheme="file" />
|
||||||
<data android:mimeType="*/*" />
|
<data android:mimeType="*/*" />
|
||||||
<data android:pathPattern=".*\\.love" />
|
<data android:pathPattern=".*\\.love" />
|
||||||
@@ -52,12 +46,10 @@
|
|||||||
<category android:name="android.intent.category.BROWSABLE" />
|
<category android:name="android.intent.category.BROWSABLE" />
|
||||||
<data android:scheme="http"
|
<data android:scheme="http"
|
||||||
android:host="*"
|
android:host="*"
|
||||||
android:pathPrefix="*"
|
|
||||||
android:mimeType="*/*"
|
android:mimeType="*/*"
|
||||||
android:pathPattern=".*\\.love" />
|
android:pathPattern=".*\\.love" />
|
||||||
<data android:scheme="https"
|
<data android:scheme="https"
|
||||||
android:host="*"
|
android:host="*"
|
||||||
android:pathPrefix="*"
|
|
||||||
android:mimeType="*/*"
|
android:mimeType="*/*"
|
||||||
android:pathPattern=".*\\.love" />
|
android:pathPattern=".*\\.love" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
jcenter()
|
||||||
|
google()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:3.0.1'
|
classpath 'com.android.tools.build:gradle:3.0.1'
|
||||||
@@ -15,3 +16,7 @@ buildscript {
|
|||||||
task clean(type: Delete) {
|
task clean(type: Delete) {
|
||||||
delete rootProject.buildDir
|
delete rootProject.buildDir
|
||||||
}
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
google()
|
||||||
|
}
|
||||||
@@ -27,15 +27,6 @@
|
|||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <algorithm>
|
#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
|
namespace love
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user