Skip to content

Now works on modern Android #10

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

Open
wants to merge 3 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
3 changes: 1 addition & 2 deletions LED-master/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
/.idea
.DS_Store
/build
Binary file removed LED-master/.idea/caches/build_file_checksums.ser
Binary file not shown.
29 changes: 0 additions & 29 deletions LED-master/.idea/codeStyles/Project.xml

This file was deleted.

18 changes: 0 additions & 18 deletions LED-master/.idea/gradle.xml

This file was deleted.

34 changes: 0 additions & 34 deletions LED-master/.idea/misc.xml

This file was deleted.

9 changes: 0 additions & 9 deletions LED-master/.idea/modules.xml

This file was deleted.

12 changes: 0 additions & 12 deletions LED-master/.idea/runConfigurations.xml

This file was deleted.

Binary file added LED-master/LED-master.zip
Binary file not shown.
19 changes: 0 additions & 19 deletions LED-master/LED.iml

This file was deleted.

96 changes: 0 additions & 96 deletions LED-master/app/app.iml

This file was deleted.

12 changes: 6 additions & 6 deletions LED-master/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
compileSdkVersion 30
buildToolsVersion "30.0.3"

defaultConfig {
applicationId "com.led.led_on_off"
minSdkVersion 14
targetSdkVersion 21
minSdkVersion 24
targetSdkVersion 30
versionCode 1
versionName "1.0"
}
Expand All @@ -20,6 +20,6 @@ android {
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.3.1'
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;

public class AboutActivity extends ActionBarActivity
public class AboutActivity extends AppCompatActivity
{

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.led_on_off.led;

import android.content.Intent;
import android.support.v7.app.ActionBarActivity;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
Expand All @@ -19,7 +19,7 @@
import java.util.Set;


public class DeviceList extends ActionBarActivity
public class DeviceList extends AppCompatActivity
{
//widgets
Button btnPaired;
Expand Down
20 changes: 10 additions & 10 deletions LED-master/app/src/main/java/com/led_on_off/led/ledControl.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.led_on_off.led;

import android.support.v7.app.ActionBarActivity;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
Expand All @@ -20,7 +20,7 @@
import java.util.UUID;


public class ledControl extends ActionBarActivity {
public class ledControl extends AppCompatActivity {

// Button btnOn, btnOff, btnDis;
Button On, Off, Discnt, Abt;
Expand Down Expand Up @@ -132,14 +132,14 @@ private void msg(String s)
Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();
}

public void about(View v)
{
if(v.getId() == R.id.abt)
{
Intent i = new Intent(this, AboutActivity.class);
startActivity(i);
}
}
// public void about(View v)
// {
// if(v.getId() == R.id.abt)
// {
// Intent i = new Intent(this, AboutActivity.class);
// startActivity(i);
// }
// }

@Override
public boolean onCreateOptionsMenu(Menu menu) {
Expand Down
8 changes: 5 additions & 3 deletions LED-master/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

buildscript {
repositories {
jcenter()
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'com.android.tools.build:gradle:4.2.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -14,6 +15,7 @@ buildscript {

allprojects {
repositories {
jcenter()
mavenCentral()
google()
}
}
4 changes: 3 additions & 1 deletion LED-master/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@
# 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
# org.gradle.parallel=true
# org.gradle.parallel=true
android.enableJetifier=true
android.useAndroidX=true
6 changes: 3 additions & 3 deletions LED-master/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Apr 10 15:27:10 PDT 2013
#Fri Jul 29 21:37:13 EDT 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
zipStoreBase=GRADLE_USER_HOME