Skip to content

Commit

Permalink
merge from develop 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
victordiaz committed Jan 12, 2021
2 parents 0f7d2ff + d56a4dd commit 8021b0e
Show file tree
Hide file tree
Showing 101 changed files with 2,409 additions and 1,834 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ buildscript {
}

project.ext {
versionCode = 134
versionName = "1.3.2"
compileSdkVersion = 29
versionCode = 140
versionName = "1.4.0"
compileSdkVersion = 30
targetSdkVersion = 29
minSdkVersion = 16
}
Expand Down
8 changes: 6 additions & 2 deletions phonk_app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ android {
}

aaptOptions {
noCompress "tflite"
noCompress "tflite"
}
}

Expand All @@ -47,7 +47,7 @@ android {

buildTypes {
release {
minifyEnabled false
minifyEnabled false
debuggable false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
signingConfig signingConfigs.releaseConfig
Expand Down Expand Up @@ -106,7 +106,11 @@ dependencies {
implementation project(path: ':phonk_apprunner')
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.preference:preference:1.1.1'
// implementation 'androidx.emoji:emoji-bundled:1.0.0'

debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

implementation 'org.reactivestreams:reactive-streams:1.0.3'
implementation 'io.reactivex.rxjava2:rxjava:2.2.0'
}
23 changes: 17 additions & 6 deletions phonk_app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
-->

<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="io.phonk">
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="io.phonk">

<!-- android:resizeableActivity = "true" -->

Expand Down Expand Up @@ -100,13 +100,13 @@
</activity>

<activity
android:name="io.phonk.WelcomeActivity"
android:name="io.phonk.gui.WelcomeActivity"
android:theme="@style/PhonkAppTheme"
android:label="@string/welcome_activity_name" >
</activity>
<activity
android:name="io.phonk.gui.settings.SettingsActivity"
android:theme="@style/PhonkAppTheme"
android:theme="@style/PhonkAppThemePreferences"
android:label="@string/settings_activity_name" >
</activity>
<activity
Expand Down Expand Up @@ -162,6 +162,8 @@
</intent-filter>
</activity>

<activity android:name=".NewMainActivity" />

<service
android:name="io.phonk.server.PhonkServerService"
android:exported="false">
Expand Down Expand Up @@ -191,6 +193,15 @@
</intent-filter>
</receiver>

<!-- New signature permission to ensure only systemui can bind to these services -->
<service android:name="io.phonk.MyCustomControlService" android:label="@string/app_name"
android:permission="android.permission.BIND_CONTROLS">
<intent-filter>
<action android:name="android.service.controls.ControlsProviderService" />
</intent-filter>
</service>


<!--
<provider
android:name="androidx.core.content.FileProvider"
Expand All @@ -206,7 +217,7 @@
-->

</application>

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
</manifest>
5 changes: 5 additions & 0 deletions phonk_app/src/main/assets/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1.4.0
- Updated app design
- Some app refactor that will help future development
- Small fixes in the PHONK app and the Web Editor

1.3.2
- Ask permission for background location
- Settings has a new entry that redirects to app permissions
Expand Down
21 changes: 7 additions & 14 deletions phonk_app/src/main/java/io/phonk/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@

package io.phonk;

import android.app.Application;

import androidx.multidex.MultiDex;
import androidx.multidex.MultiDexApplication;

import io.phonk.gui.connectionInfo.EventManager;
import io.phonk.runner.base.utils.TimerUtils;

public class App extends MultiDexApplication {

public static MyLifecycleHandler myLifecycleHandler;
public EventManager eventManager;

@Override
public void onCreate() {
Expand All @@ -49,20 +49,13 @@ public void onCreate() {
registerActivityLifecycleCallbacks(myLifecycleHandler);
TimerUtils.stamp("registerActivityLifecycleCallbacks");

// Fabric.with(this, new Crashlytics());

/*
final Fabric fabric = new Fabric.Builder(this)
.kits(new Crashlytics())
.logger(new DefaultLogger(Log.VERBOSE))
.debuggable(true)
.build();
Fabric.with(fabric);
*/

if (!(Thread.getDefaultUncaughtExceptionHandler() instanceof PhonkExceptionHandler)) {
Thread.setDefaultUncaughtExceptionHandler(new PhonkExceptionHandler());
}

eventManager = new EventManager(getApplicationContext());

// EmojiCompat.Config config = new BundledEmojiCompatConfig(this);
// EmojiCompat.init(config);
}
}
6 changes: 4 additions & 2 deletions phonk_app/src/main/java/io/phonk/LauncherActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
import android.os.Bundle;
import android.widget.Toast;

import io.phonk.gui.AboutActivity;
import io.phonk.gui.UpdateActivity;
import io.phonk.runner.base.utils.MLog;
import io.phonk.gui.WelcomeActivity;
import io.phonk.gui.settings.SettingsActivity;

public class LauncherActivity extends Activity {

Expand Down Expand Up @@ -69,6 +69,8 @@ public void onCreate(Bundle savedInstanceState) {
intent = new Intent(this, UpdateActivity.class);
} else {
intent = new Intent(this, MainActivity.class);
// intent = new Intent(this, NewMainActivity.class);
// intent = new Intent(this, SettingsActivity.class);
// intent.putExtras();
}

Expand Down
Loading

0 comments on commit 8021b0e

Please sign in to comment.