Skip to content

Commit

Permalink
Fix Android app build #32
Browse files Browse the repository at this point in the history
  • Loading branch information
tkirshboim authored May 17, 2022
2 parents 745c9a8 + 87b2b21 commit 69cfebd
Show file tree
Hide file tree
Showing 14 changed files with 232 additions and 208 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ captures
*.so
*.dylib
*.pd_darwin
AblLinkSample/app/.cxx
17 changes: 5 additions & 12 deletions AblLinkSample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ android {
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
applicationId "com.noisepages.nettoyeur.abllinksample"
minSdkVersion 10
targetSdkVersion 25
minSdkVersion rootProject.minSdkVersion
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
ndk {
abiFilters 'x86', 'armeabi', 'armeabi-v7a'
}
}
buildTypes {
release {
Expand All @@ -28,10 +24,7 @@ android {
}

dependencies {
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.0.0'
compile project(':PdCore')
testCompile 'junit:junit:4.12'
implementation project(':PdCore')
implementation 'com.google.android.material:material:1.6.0'
implementation 'androidx.activity:activity:1.4.0'
}

This file was deleted.

1 change: 1 addition & 0 deletions AblLinkSample/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@
<service android:name="org.puredata.android.service.PdService"/>
</application>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@
import android.content.res.Resources;
import android.os.Bundle;
import android.os.IBinder;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.CheckBox;
import android.widget.SeekBar;
import android.widget.TextView;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
Expand Down
2 changes: 1 addition & 1 deletion AblLinkSample/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<style name="AppTheme" parent="Theme.MaterialComponents.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
Expand Down

This file was deleted.

21 changes: 11 additions & 10 deletions AblLinkSample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,19 @@

buildscript {
repositories {
jcenter()
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.android.tools.build:gradle:7.2.0'
}
}

allprojects {
repositories {
jcenter()
google()
mavenCentral()
jcenter() // FIXME: com.noisepages.nettoyeur:midi
}
}

Expand All @@ -25,6 +23,9 @@ task clean(type: Delete) {
}

ext {
compileSdkVersion = 25
buildToolsVersion = '25.0.0'
minSdkVersion = 17
compileSdkVersion = 32
buildToolsVersion = '32.0.0'
androidxLegacySupportVersion = '1.0.0'
ndkVersion = '21.4.7075529' // https://developer.android.com/ndk/downloads#lts-downloads
}
2 changes: 1 addition & 1 deletion AblLinkSample/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m

android.useAndroidX=true
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
Expand Down
Binary file modified AblLinkSample/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 1 addition & 2 deletions AblLinkSample/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Mon Dec 28 10:00:20 PST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
Loading

0 comments on commit 69cfebd

Please sign in to comment.