Skip to content

Commit

Permalink
Update gradle, build tools, dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mar-v-in committed Jan 2, 2018
1 parent 0596d2c commit 464d45d
Show file tree
Hide file tree
Showing 15 changed files with 57 additions and 43 deletions.
16 changes: 4 additions & 12 deletions .travis.yml
@@ -1,9 +1,5 @@
language: android
sudo: false
git:
submodules: false
before_install:
- git submodule update --init --recursive
script:
- jdk_switcher use oraclejdk8
- echo sdk.dir $ANDROID_HOME > local.properties
Expand All @@ -14,12 +10,8 @@ android:
components:
- tools
- platform-tools
- build-tools-25.0.2
- android-25
- build-tools-27.0.3
- android-27
- extra-android-m2repository
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_install:
- yes | sdkmanager "platforms;android-27"
17 changes: 8 additions & 9 deletions build.gradle
Expand Up @@ -17,22 +17,25 @@
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
}
}

allprojects {
apply plugin: 'idea'
ext.androidBuildVersionTools = "25.0.2"
ext.androidBuildVersionTools = "27.0.3"
ext.supportLibraryVersion = "27.0.2"
ext.isReleaseVersion = false
ext.slf4jVersion = "1.7.25"
}

def androidCompileSdk() { return 25 }
def androidCompileSdk() { return 27 }

def androidTargetSdk() { return 23 }
def androidTargetSdk() { return 27 }

def androidMinSdk() { return 9 }

Expand All @@ -55,11 +58,7 @@ subprojects {
group = 'org.microg'
repositories {
jcenter()
}

tasks.withType(JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
maven { url "https://maven.google.com" }
}
}

2 changes: 1 addition & 1 deletion extern/RemoteDroidGuard
2 changes: 1 addition & 1 deletion extern/UnifiedNlp
2 changes: 1 addition & 1 deletion extern/Wearable
2 changes: 1 addition & 1 deletion extern/vtm
Submodule vtm updated 876 files
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-all.zip
32 changes: 20 additions & 12 deletions play-services-core/build.gradle
Expand Up @@ -17,21 +17,24 @@
apply plugin: 'com.android.application'

dependencies {
compile 'de.hdodenhof:circleimageview:1.2.1'
compile 'com.squareup.wire:wire-runtime:1.6.1'
implementation "com.android.support:support-v4:$supportLibraryVersion"
implementation "com.android.support:appcompat-v7:$supportLibraryVersion"
implementation "com.takisoft.fix:preference-v7:$supportLibraryVersion.0"
implementation "de.hdodenhof:circleimageview:1.3.0"
implementation "com.squareup.wire:wire-runtime:1.6.1"

compile project(':microg-ui-tools')
compile project(':play-services-api')
compile project(':play-services-wearable')
compile project(':unifiednlp-base')
compile project(':wearable-lib')
implementation project(':microg-ui-tools')
implementation project(':play-services-api')
implementation project(':play-services-wearable')
implementation project(':unifiednlp-base')
implementation project(':wearable-lib')

compile project(':remote-droid-guard-lib')
implementation project(':remote-droid-guard-lib')

compile project(':vtm-android')
compile project(':vtm-extras')
compile project(':vtm-jts')
compile project(':vtm-microg-theme')
implementation project(':vtm-android')
implementation project(':vtm-extras')
implementation project(':vtm-jts')
implementation project(':vtm-microg-theme')
}

String getMyVersionName() {
Expand Down Expand Up @@ -91,6 +94,11 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

if (file('user.gradle').exists()) {
Expand Down
5 changes: 4 additions & 1 deletion play-services-core/src/main/AndroidManifest.xml
Expand Up @@ -15,7 +15,8 @@
~ limitations under the License.
-->
<manifest package="com.google.android.gms"
xmlns:android="http://schemas.android.com/apk/res/android">
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<permission
android:name="com.google.android.c2dm.permission.RECEIVE"
Expand Down Expand Up @@ -90,6 +91,8 @@
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>

<uses-sdk tools:overrideLibrary="com.takisoft.fix.support.v7.preference,android.support.graphics.drawable.animated,android.arch.lifecycle"/>

<application
android:allowBackup="false"
android:extractNativeLibs="false"
Expand Down
Expand Up @@ -24,7 +24,7 @@
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.RemoteException;
import android.support.v7.app.NotificationCompat;
import android.support.v4.app.NotificationCompat;
import android.util.Base64;
import android.util.Log;

Expand Down
Expand Up @@ -16,13 +16,15 @@

package org.microg.gms.auth.login;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.annotation.StringRes;
import android.util.DisplayMetrics;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.google.android.gms.R;
Expand Down Expand Up @@ -50,6 +52,7 @@ public void onClick(View v) {
});
}

@SuppressLint("WrongViewCast")
private void formatTitle() {
if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {
double widthPixels = (double) (getResources().getDisplayMetrics().widthPixels);
Expand Down
2 changes: 1 addition & 1 deletion proguard.flags
Expand Up @@ -3,7 +3,7 @@
-optimizations !code/allocation/variable

# We're referencing stuff that is unknown to the system
-libraryjar ../unifiednlp-compat/build/classes/main
-libraryjar ../unifiednlp-compat/build/classes/java/main
-dontwarn java.awt.**
-dontwarn javax.annotation.**

Expand Down
9 changes: 9 additions & 0 deletions vtm-microg-theme/src/org/oscim/theme/MicrogThemes.java
Expand Up @@ -29,4 +29,13 @@ public String getRelativePathPrefix() {
public InputStream getRenderThemeAsStream() {
return AssetAdapter.readFileAsStream(mPath);
}

@Override
public void setMenuCallback(XmlRenderThemeMenuCallback menuCallback) {
}

@Override
public boolean isMapsforgeTheme() {
return false;
}
}

0 comments on commit 464d45d

Please sign in to comment.