Skip to content

Commit 8021b0e

Browse files
committed
merge from develop 1.4.0
2 parents 0f7d2ff + d56a4dd commit 8021b0e

File tree

101 files changed

+2409
-1834
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+2409
-1834
lines changed

build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ buildscript {
1010
}
1111

1212
project.ext {
13-
versionCode = 134
14-
versionName = "1.3.2"
15-
compileSdkVersion = 29
13+
versionCode = 140
14+
versionName = "1.4.0"
15+
compileSdkVersion = 30
1616
targetSdkVersion = 29
1717
minSdkVersion = 16
1818
}

phonk_app/build.gradle

+6-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ android {
3232
}
3333

3434
aaptOptions {
35-
noCompress "tflite"
35+
noCompress "tflite"
3636
}
3737
}
3838

@@ -47,7 +47,7 @@ android {
4747

4848
buildTypes {
4949
release {
50-
minifyEnabled false
50+
minifyEnabled false
5151
debuggable false
5252
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
5353
signingConfig signingConfigs.releaseConfig
@@ -106,7 +106,11 @@ dependencies {
106106
implementation project(path: ':phonk_apprunner')
107107
implementation 'androidx.multidex:multidex:2.0.1'
108108
implementation 'androidx.preference:preference:1.1.1'
109+
// implementation 'androidx.emoji:emoji-bundled:1.0.0'
109110

110111
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.2'
111112
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
113+
114+
implementation 'org.reactivestreams:reactive-streams:1.0.3'
115+
implementation 'io.reactivex.rxjava2:rxjava:2.2.0'
112116
}

phonk_app/src/main/AndroidManifest.xml

+17-6
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
-->
2323

2424
<manifest
25-
xmlns:android="http://schemas.android.com/apk/res/android"
26-
xmlns:tools="http://schemas.android.com/tools"
27-
package="io.phonk">
25+
xmlns:android="http://schemas.android.com/apk/res/android"
26+
xmlns:tools="http://schemas.android.com/tools"
27+
package="io.phonk">
2828

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

@@ -100,13 +100,13 @@
100100
</activity>
101101

102102
<activity
103-
android:name="io.phonk.WelcomeActivity"
103+
android:name="io.phonk.gui.WelcomeActivity"
104104
android:theme="@style/PhonkAppTheme"
105105
android:label="@string/welcome_activity_name" >
106106
</activity>
107107
<activity
108108
android:name="io.phonk.gui.settings.SettingsActivity"
109-
android:theme="@style/PhonkAppTheme"
109+
android:theme="@style/PhonkAppThemePreferences"
110110
android:label="@string/settings_activity_name" >
111111
</activity>
112112
<activity
@@ -162,6 +162,8 @@
162162
</intent-filter>
163163
</activity>
164164

165+
<activity android:name=".NewMainActivity" />
166+
165167
<service
166168
android:name="io.phonk.server.PhonkServerService"
167169
android:exported="false">
@@ -191,6 +193,15 @@
191193
</intent-filter>
192194
</receiver>
193195

196+
<!-- New signature permission to ensure only systemui can bind to these services -->
197+
<service android:name="io.phonk.MyCustomControlService" android:label="@string/app_name"
198+
android:permission="android.permission.BIND_CONTROLS">
199+
<intent-filter>
200+
<action android:name="android.service.controls.ControlsProviderService" />
201+
</intent-filter>
202+
</service>
203+
204+
194205
<!--
195206
<provider
196207
android:name="androidx.core.content.FileProvider"
@@ -206,7 +217,7 @@
206217
-->
207218

208219
</application>
209-
220+
210221
<uses-permission android:name="android.permission.INTERNET" />
211222
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
212223
</manifest>

phonk_app/src/main/assets/changelog.txt

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
1.4.0
2+
- Updated app design
3+
- Some app refactor that will help future development
4+
- Small fixes in the PHONK app and the Web Editor
5+
16
1.3.2
27
- Ask permission for background location
38
- Settings has a new entry that redirects to app permissions

phonk_app/src/main/java/io/phonk/App.java

+7-14
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@
2222

2323
package io.phonk;
2424

25-
import android.app.Application;
26-
2725
import androidx.multidex.MultiDex;
2826
import androidx.multidex.MultiDexApplication;
2927

28+
import io.phonk.gui.connectionInfo.EventManager;
3029
import io.phonk.runner.base.utils.TimerUtils;
3130

3231
public class App extends MultiDexApplication {
3332

3433
public static MyLifecycleHandler myLifecycleHandler;
34+
public EventManager eventManager;
3535

3636
@Override
3737
public void onCreate() {
@@ -49,20 +49,13 @@ public void onCreate() {
4949
registerActivityLifecycleCallbacks(myLifecycleHandler);
5050
TimerUtils.stamp("registerActivityLifecycleCallbacks");
5151

52-
// Fabric.with(this, new Crashlytics());
53-
54-
/*
55-
final Fabric fabric = new Fabric.Builder(this)
56-
.kits(new Crashlytics())
57-
.logger(new DefaultLogger(Log.VERBOSE))
58-
.debuggable(true)
59-
.build();
60-
61-
Fabric.with(fabric);
62-
*/
63-
6452
if (!(Thread.getDefaultUncaughtExceptionHandler() instanceof PhonkExceptionHandler)) {
6553
Thread.setDefaultUncaughtExceptionHandler(new PhonkExceptionHandler());
6654
}
55+
56+
eventManager = new EventManager(getApplicationContext());
57+
58+
// EmojiCompat.Config config = new BundledEmojiCompatConfig(this);
59+
// EmojiCompat.init(config);
6760
}
6861
}

phonk_app/src/main/java/io/phonk/LauncherActivity.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
import android.os.Bundle;
2929
import android.widget.Toast;
3030

31-
import io.phonk.gui.AboutActivity;
3231
import io.phonk.gui.UpdateActivity;
33-
import io.phonk.runner.base.utils.MLog;
32+
import io.phonk.gui.WelcomeActivity;
33+
import io.phonk.gui.settings.SettingsActivity;
3434

3535
public class LauncherActivity extends Activity {
3636

@@ -69,6 +69,8 @@ public void onCreate(Bundle savedInstanceState) {
6969
intent = new Intent(this, UpdateActivity.class);
7070
} else {
7171
intent = new Intent(this, MainActivity.class);
72+
// intent = new Intent(this, NewMainActivity.class);
73+
// intent = new Intent(this, SettingsActivity.class);
7274
// intent.putExtras();
7375
}
7476

0 commit comments

Comments
 (0)