Skip to content

Commit

Permalink
Reduced logs on Android and fix type error for app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaVitale committed May 17, 2018
1 parent c43f223 commit c21fb37
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 20 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store

ios/iphone/*.zip
android/android/dist/*.zip
phobeous-build.properties
31 changes: 16 additions & 15 deletions android/android/java-sources.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
"/Volumes/Data/Development/Appcelerator/Modules/av.imageview/android/android/src/av/imageview/AVImageView.java"
"/Volumes/Data/Development/Appcelerator/Modules/av.imageview/android/android/src/av/imageview/ImageViewModule.java"
"/Volumes/Data/Development/Appcelerator/Modules/av.imageview/android/android/src/av/imageview/ImageViewProxy.java"
"/Volumes/Data/Development/Appcelerator/Modules/av.imageview/android/android/src/av/imageview/utils/ImageLoader.java"
"/Volumes/Data/Development/Appcelerator/Modules/av.imageview/android/android/src/av/imageview/utils/glide/GlideCircleTransform.java"
"/Volumes/Data/Development/Appcelerator/Modules/av.imageview/android/android/src/av/imageview/utils/glide/GlideConfiguration.java"
"/Volumes/Data/Development/Appcelerator/Modules/av.imageview/android/android/src/av/imageview/utils/glide/GlideUrlBuilder.java"
"/Volumes/Data/Development/Appcelerator/Modules/av.imageview/android/android/src/av/imageview/utils/glide/StreamModelLoaderWrapper.java"
"/Volumes/Data/Development/Appcelerator/Modules/av.imageview/android/android/build/generated/java/av/imageview/ImageviewAndroidBootstrap.java"
"/Volumes/Data/Development/Appcelerator/Modules/av.imageview/android/android/build/generated/r/android/support/compat/R.java"
"/Volumes/Data/Development/Appcelerator/Modules/av.imageview/android/android/build/generated/r/android/support/design/R.java"
"/Volumes/Data/Development/Appcelerator/Modules/av.imageview/android/android/build/generated/r/android/support/v7/appcompat/R.java"
"/Volumes/Data/Development/Appcelerator/Modules/av.imageview/android/android/build/generated/r/android/support/v7/cardview/R.java"
"/Volumes/Data/Development/Appcelerator/Modules/av.imageview/android/android/build/generated/r/av/imageview/R.java"
"/Volumes/Data/Development/Appcelerator/Modules/av.imageview/android/android/build/generated/r/ti/modules/titanium/ui/R.java"
"/Users/andrea/Sviluppo/Titanium/Modules/av.imageview/android/android/src/av/imageview/AVImageView.java"
"/Users/andrea/Sviluppo/Titanium/Modules/av.imageview/android/android/src/av/imageview/ImageViewModule.java"
"/Users/andrea/Sviluppo/Titanium/Modules/av.imageview/android/android/src/av/imageview/ImageViewProxy.java"
"/Users/andrea/Sviluppo/Titanium/Modules/av.imageview/android/android/src/av/imageview/utils/CookiesHelper.java"
"/Users/andrea/Sviluppo/Titanium/Modules/av.imageview/android/android/src/av/imageview/utils/ImageLoader.java"
"/Users/andrea/Sviluppo/Titanium/Modules/av.imageview/android/android/src/av/imageview/utils/glide/GlideCircleTransform.java"
"/Users/andrea/Sviluppo/Titanium/Modules/av.imageview/android/android/src/av/imageview/utils/glide/GlideConfiguration.java"
"/Users/andrea/Sviluppo/Titanium/Modules/av.imageview/android/android/src/av/imageview/utils/glide/GlideUrlBuilder.java"
"/Users/andrea/Sviluppo/Titanium/Modules/av.imageview/android/android/src/av/imageview/utils/glide/StreamModelLoaderWrapper.java"
"/Users/andrea/Sviluppo/Titanium/Modules/av.imageview/android/android/build/generated/java/av/imageview/ImageviewAndroidBootstrap.java"
"/Users/andrea/Sviluppo/Titanium/Modules/av.imageview/android/android/build/generated/r/android/support/compat/R.java"
"/Users/andrea/Sviluppo/Titanium/Modules/av.imageview/android/android/build/generated/r/android/support/design/R.java"
"/Users/andrea/Sviluppo/Titanium/Modules/av.imageview/android/android/build/generated/r/android/support/v7/appcompat/R.java"
"/Users/andrea/Sviluppo/Titanium/Modules/av.imageview/android/android/build/generated/r/android/support/v7/cardview/R.java"
"/Users/andrea/Sviluppo/Titanium/Modules/av.imageview/android/android/build/generated/r/av/imageview/R.java"
"/Users/andrea/Sviluppo/Titanium/Modules/av.imageview/android/android/build/generated/r/ti/modules/titanium/ui/R.java"
Binary file added android/android/libs/arm64-v8a/libav.imageview.so
Binary file not shown.
Binary file modified android/android/libs/armeabi-v7a/libav.imageview.so
Binary file not shown.
Binary file modified android/android/libs/x86/libav.imageview.so
Binary file not shown.
2 changes: 1 addition & 1 deletion android/android/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
version: 3.1.1
version: 4.0.0
apiversion: 4
architectures: arm64-v8a armeabi-v7a x86
description: av.imageview
Expand Down
9 changes: 7 additions & 2 deletions android/android/src/av/imageview/utils/CookiesHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ public static String getCookiesStringForURL(String urlString)
}
else
{
Log.d(LCAT, "No cookie found for " + urlString);
if (Log.isDebugModeEnabled()) {
Log.d(LCAT, "No cookie found for " + urlString);
}
return null;
}
}
Expand All @@ -56,7 +58,10 @@ private static HttpCookie[] getHTTPCookiesForURL(String urlString) throws Except
URL url = new URL(urlString);
String domain = url.getHost();
String path = url.getPath();
Log.d(LCAT, "Getting HTTP Cookies for " + domain);

if (Log.isDebugModeEnabled()) {
Log.d(LCAT, "Getting HTTP Cookies for " + domain);
}

if (domain == null || domain.length() == 0) {
if (Log.isDebugModeEnabled()) {
Expand Down
2 changes: 1 addition & 1 deletion ios/example/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var default_template = {
contentMode: AvImageview.CONTENT_MODE_ASPECT_FILL,
requestHeader: {
'Authorization': "Bearer YOU_CAN_PLACE_YOUR_ACCESS_TOKEN_HERE"
}.
},
timeout: 2500
}
}]
Expand Down

0 comments on commit c21fb37

Please sign in to comment.