Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Bump gradle and build version
Browse files Browse the repository at this point in the history
  • Loading branch information
guserav committed Nov 21, 2022
1 parent af74fe4 commit afc2943
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ android {
keyPassword System.getenv("RELEASE_KEY_PASSWORD")
}
}
compileSdkVersion 30
compileSdkVersion 31
buildToolsVersion '30.0.0'
defaultConfig {
applicationId "de.selfnet.wifisetup"
minSdkVersion 23
targetSdkVersion 30
targetSdkVersion 31
}
buildTypes {
release {
Expand Down
8 changes: 5 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.selfnet.wifisetup" android:installLocation="auto" android:versionCode="6" android:versionName="1.3.0">
package="de.selfnet.wifisetup" android:installLocation="auto" android:versionCode="7" android:versionName="1.3.0">
<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
<uses-feature android:name="android.hardware.wifi" android:required="true"/>

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<application android:allowBackup="false" android:label="@string/app_name" android:icon="@drawable/app_icon">
<activity android:name="de.selfnet.wifisetup.LogonScreen"
android:label="@string/app_name"
android:theme="@android:style/Theme.Holo.Light">
android:label="@string/app_name"
android:theme="@android:style/Theme.Holo.Light"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand Down
5 changes: 4 additions & 1 deletion app/src/main/java/de/selfnet/wifisetup/LogonScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
Expand All @@ -52,6 +53,7 @@
// API level 18 and up

public class LogonScreen extends Activity {
private static final String TAG = "LogonScree";
protected static final int SHOW_PREFERENCES = 0;
private Handler mHandler = new Handler();
private EditText username;
Expand Down Expand Up @@ -295,7 +297,8 @@ private void saveWifiConfigPostP() {
.build();
final List<WifiNetworkSuggestion> suggestionsList = new ArrayList<>();
suggestionsList.add(suggestion);
wifiManager.addNetworkSuggestions(suggestionsList);
int status = wifiManager.addNetworkSuggestions(suggestionsList);
Log.i(TAG, "Adding network suggestion returned: " + status);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0'
classpath 'com.android.tools.build:gradle:7.0.2'
}
}

Expand Down
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8-bin.zip
distributionSha256Sum=f3e29692a8faa94eb0b02ebf36fa263a642b3ae8694ef806c45c345b8683f1ba
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip

0 comments on commit afc2943

Please sign in to comment.