Skip to content

Commit

Permalink
0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thsc42 committed Jan 20, 2021
1 parent 440874c commit 33e4450
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 49 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ https://developer.android.com/studio/projects/android-library
*/

// choose one line either for an app or a lib
apply plugin: 'com.android.application'
//apply plugin: 'com.android.library'
//apply plugin: 'com.android.application'
apply plugin: 'com.android.library'

android {
compileSdkVersion 29
defaultConfig {
// we produce a library by commenting out that line:
applicationId "net.sharksystem.asap.example"
//applicationId "net.sharksystem.asap.example"
minSdkVersion 23
targetSdkVersion 29
versionCode 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,54 +557,9 @@ public void removeASAPMessageReceivedListener(
// other listeners beside chunk received //
///////////////////////////////////////////////////////////////////////////////////////////////

/*
public void chunkReceived(String format, String sender, String uri, String foldername, int era) {
Log.d(this.getLogStart(), "got chunkReceived message: "
+ format + " | "+ sender + " | " + uri + " | " + foldername + " | " + era);
// inform uri changed listener - if any
Collection<ASAPUriContentChangedListener> uriListeners =
this.uriContentChangedListener.get(format);
Log.d(this.getLogStart(), "going to inform uri changed listener about it: "
+ uriListeners);
if(uriListeners != null) {
for(ASAPUriContentChangedListener uriListener : uriListeners) {
uriListener.asapUriContentChanged(uri);
}
}
// inform message listeners - if any
Collection<ASAPMessageReceivedListener> messageListeners =
this.messageReceivedListener.get(format);
Log.d(this.getLogStart(), "going to inform message listener about it: "
+ messageListeners);
if(messageListeners != null) {
ASAPMessages asapMessages = Helper.getMessagesByChunkReceivedInfos(
format, sender, uri, foldername, era);
if(asapMessages == null) {
Log.e(this.getLogStart(), "cannot create message - failure - give up");
return;
}
for(ASAPMessageReceivedListener messageListener : messageListeners) {
try {
messageListener.asapMessagesReceived(asapMessages);
} catch (IOException e) {
Log.e(this.getLogStart(), "calling messageReceivedListener: "
+ e.getLocalizedMessage());
}
}
}
}
*/

/////// uri changed listener - under construction - not yet support with ASAPPeer and not yet documented in web page

// TODO - replace or move to ASAPPeer in the Java project
private Map<CharSequence, Collection<ASAPUriContentChangedListener>> uriContentChangedListener
= new HashMap<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import android.widget.Toast;

import net.sharksystem.asap.ASAPException;
import net.sharksystem.asap.ASAPPeer;
import net.sharksystem.asap.android.R;
// TODO do not work with internal classes in any example!!
import net.sharksystem.asap.android.apps.ASAPActivity;
Expand Down

0 comments on commit 33e4450

Please sign in to comment.