Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize #19

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/Android-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ on:
branches:
- master
pull_request:
branches:
- master

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: set up JDK 1.8
uses: actions/setup-java@v1
- uses: actions/checkout@v3
- name: set up JDK
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'adopt'
java-version: 17
- uses: gradle/wrapper-validation-action@v1
- name: Build with Gradle
run: ./gradlew assemble testDebugUnitTest
10 changes: 0 additions & 10 deletions .github/workflows/gradle-wrapper-validation.yml

This file was deleted.

5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ jobs:
with:
fetch-depth: 0
- name: Install JDK ${{ matrix.java_version }}
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'adopt'
java-version: 17
- name: Build project
run: ./gradlew build
env:
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.2'
classpath 'com.android.tools.build:gradle:8.5.2'
}
}

allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}
23 changes: 12 additions & 11 deletions example/build.gradle
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
apply plugin: 'com.android.application'

dependencies {
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation project(':openpgp-api')
plugins {
id 'com.android.application'
}

android {
compileSdkVersion 28

defaultConfig {
minSdkVersion 14
targetSdkVersion 28
compileSdk 34
targetSdkVersion 34
applicationId 'org.openintents.openpgp.example'
versionCode 6
versionName '7.0'
}

// Do not abort build if lint finds errors
lintOptions {
lint {
abortOnError false
}
namespace 'org.openintents.openpgp.example'

}

dependencies {
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation project(':openpgp-api')
}
9 changes: 4 additions & 5 deletions example/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.openintents.openpgp.example">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="OpenPGP API Example">
<activity
android:name=".BaseActivity"
android:label="OpenPGP API Example">
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".OpenPgpApiActivity"
android:exported="true"
android:label="OpenPGP API"
android:windowSoftInputMode="stateHidden" />
</application>

</manifest>
</manifest>
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
android.enableJetifier=true
android.useAndroidX=true
android.useAndroidX=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading
Loading