Studio && build update

This commit is contained in:
shagr4th 2018-03-07 23:02:23 +01:00
parent c17b733679
commit f18fb833f2
5 changed files with 61 additions and 24 deletions

1
.gitignore vendored
View file

@ -32,5 +32,6 @@ app/app.iml
ehthumbs.db ehthumbs.db
Thumbs.db Thumbs.db
app/.externalNativeBuild
app/app-all-release.apk app/app-all-release.apk

View file

@ -1,29 +1,35 @@
apply plugin: 'com.android.model.application' apply plugin: 'com.android.application'
model { android {
android { compileSdkVersion 24
compileSdkVersion 24 buildToolsVersion "27.0.3"
buildToolsVersion "25.0.2"
defaultConfig { defaultConfig {
applicationId "org.ab.x48" applicationId "org.ab.x48"
minSdkVersion.apiLevel 9 minSdkVersion 16
targetSdkVersion.apiLevel 24 targetSdkVersion 24
}
ndk { externalNativeBuild {
moduleName "droid48" cmake {
ldLibs.addAll(["android", "log"]) arguments "-DANDROID_PLATFORM=android-16"
platformVersion = "9"
}
productFlavors {
create("all") {
// If ndk.abiFilters is not configured, the application
// compile and package all suppported ABI.
} }
} }
} }
externalNativeBuild {
cmake {
path "src/main/jni/CMakeLists.txt"
}
}
splits {
abi {
enable true
reset()
include 'armeabi', 'mips', 'x86'
}
}
} }
dependencies { dependencies {
compile 'com.getkeepsafe.relinker:relinker:1.2.2' compile 'com.getkeepsafe.relinker:relinker:1.2.3'
} }

View file

@ -0,0 +1,30 @@
#
# Copyright (C) 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.
#
cmake_minimum_required(VERSION 3.4.1)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=format-security")
add_library(droid48 SHARED
actions.c binio.c debugger.c device.c
disasm.c emulate.c init.c
lcd.c main.c memory.c options.c register.c
resources.c romio.c rpl.c serial.c timer.c x48.c)
# add lib dependencies
target_link_libraries(droid48
android
log)

View file

@ -5,7 +5,7 @@ buildscript {
maven { url "https://jitpack.io" } maven { url "https://jitpack.io" }
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle-experimental:0.8.3' classpath 'com.android.tools.build:gradle:3.0.1'
} }
} }

View file

@ -1,6 +1,6 @@
#Sun Dec 18 14:21:50 CET 2016 #Thu Oct 26 23:13:36 CEST 2017
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip