Skip to content

Commit

Permalink
Update 'build.gradle' and Java code for AndroidX lib
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaFeodonit committed Nov 4, 2019
1 parent 79b8faa commit 5e8d7da
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
16 changes: 10 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ if (rootProject.hasProperty("rootNativeBuildDir")) {
rootNativeBuildDir = rootProject.rootNativeBuildDir
}

def BUILD_SHARED_LIBS = false
if (rootProject.hasProperty("BUILD_SHARED_LIBS")) {
BUILD_SHARED_LIBS = rootProject.BUILD_SHARED_LIBS
}


//-----------------------------------------------------------------------
// Module properties
Expand Down Expand Up @@ -104,7 +109,7 @@ android {
versionCode 1
versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
Expand Down Expand Up @@ -140,13 +145,12 @@ android {

dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-v7:${supportLibVer}"
implementation "com.android.support:support-compat:${supportLibVer}"
implementation "com.android.support:support-v4:${supportLibVer}"
implementation "androidx.appcompat:appcompat:1.1.0"
implementation "androidx.core:core:1.1.0"

testImplementation "junit:junit:4.12"
androidTestImplementation "com.android.support.test:runner:1.0.2"
androidTestImplementation "com.android.support.test.espresso:espresso-core:3.0.2"
androidTestImplementation "androidx.test.ext:junit:1.1.1"
androidTestImplementation "androidx.test.espresso:espresso-core:3.2.0"
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.support.v4.content.AsyncTaskLoader;
import androidx.loader.content.AsyncTaskLoader;

import ru.htmlgrapheas.htmlgrapheaskamva.hgkamva_api.HgKamvaApiJni;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.Loader;
import android.support.v4.view.GestureDetectorCompat;
import android.support.v4.view.ViewCompat;
import android.support.v7.app.AppCompatActivity;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.view.GestureDetectorCompat;
import androidx.core.view.ViewCompat;
import androidx.loader.app.LoaderManager;
import androidx.loader.content.Loader;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.view.GestureDetector;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,6 @@ public native static void hgHtmlContext_loadMasterStylesheet(

System.loadLibrary("expat");

System.loadLibrary("icudata");
System.loadLibrary("icuuc");
System.loadLibrary("icui18n");
System.loadLibrary("icuio"); // TODO: needed?

System.loadLibrary("freetype" + libSuffix);
System.loadLibrary("harfbuzz");
System.loadLibrary("fontconfig");
Expand Down

0 comments on commit 5e8d7da

Please sign in to comment.