Skip to content
This repository has been archived by the owner on Sep 3, 2023. It is now read-only.

Commit

Permalink
0.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
afollestad committed Aug 17, 2016
1 parent 7afd56f commit 896bf2d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Add this to your module's `build.gradle` file:
```gradle
dependencies {
// ... other dependencies
compile 'com.afollestad:assent:0.2.4'
compile 'com.afollestad:assent:0.2.5'
}
```

Expand Down
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'com.afollestad'
PUBLISH_ARTIFACT_ID = 'assent'
PUBLISH_VERSION = '0.2.4'
PUBLISH_VERSION = '0.2.5'
TARGET_SDK = 24
BUILD_TOOLS = "24.0.0"
GOOGLE_LIBS = "24.0.0"
GOOGLE_LIBS = "24.2.0"
}

android {
Expand Down
4 changes: 4 additions & 0 deletions library/src/main/java/com/afollestad/assent/Assent.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public static void setFragment(@Nullable android.app.Fragment from, @Nullable an
} else {
instance().mAppFragment = context;
instance().mSupportFragment = null;
instance().mActivity = null;
}
}

Expand All @@ -57,6 +58,7 @@ public static void setFragment(@Nullable android.support.v4.app.Fragment from, @
} else {
instance().mAppFragment = null;
instance().mSupportFragment = context;
instance().mActivity = null;
}
}

Expand All @@ -69,6 +71,8 @@ public static void setActivity(@NonNull Activity from, @Nullable Activity contex
instance().mSupportFragment = null;
}
} else {
instance().mAppFragment = null;
instance().mSupportFragment = null;
instance().mActivity = context;
}
}
Expand Down
4 changes: 3 additions & 1 deletion library/src/main/java/com/afollestad/assent/AssentBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
*/
class AssentBase {

public static boolean LOGGING_ENABLED = false;

@NonNull
protected static String getCacheKey(@NonNull String... permissions) {
StringBuilder result = new StringBuilder();
Expand Down Expand Up @@ -49,7 +51,7 @@ protected static String join(String[] array) {
}

protected static void LOG(@NonNull String tag, @NonNull String message, @Nullable Object... args) {
if (!BuildConfig.DEBUG) return;
if (!LOGGING_ENABLED) return;
if (args != null)
Log.d(tag, String.format(message, args));
else
Expand Down
6 changes: 3 additions & 3 deletions sample/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apply plugin: 'com.android.application'

ext {
PUBLISH_VERSION = "0.2.4"
PUBLISH_VERSION = "0.2.5"
TARGET_SDK = 24
BUILD_TOOLS = "24.0.0"
GOOGLE_LIBS = "24.0.0"
GOOGLE_LIBS = "24.2.0"
}

android {
Expand All @@ -15,7 +15,7 @@ android {
applicationId "com.afollestad.assentsample"
minSdkVersion 14
targetSdkVersion TARGET_SDK
versionCode 8
versionCode 9
versionName PUBLISH_VERSION
}
lintOptions {
Expand Down

0 comments on commit 896bf2d

Please sign in to comment.