Skip to content

Commit

Permalink
Test Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
BearCola committed Jul 29, 2019
1 parent 21ff57b commit 5d5e6e0
Show file tree
Hide file tree
Showing 744 changed files with 151,866 additions and 1 deletion.
3 changes: 3 additions & 0 deletions sample/navercafesdk-sample-android-studio/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ repositories {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation fileTree(dir: 'libs', include: ['*.aar'])
implementation 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
implementation project(':libraries')
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/Naver/Library/Android/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

-ignorewarnings
-keepattributes SourceFile, LineNumberTable, *Annotation*, Signature, EnclosingMethod, InnerClasses, EnclosingMethod

-keep class com.naver.cafe.** { *; }
-keep interface com.naver.cafe.** { *; }
-keepclassmembers class com.naver.cafe.** {
<fields>;
<methods>;
}

-keep class com.naver.glink.** { *; }
-keep interface com.naver.glink.** { *; }

-keep class com.nhn.** { *; }
-keep interface com.nhn.** { *; }

-keep class p.com.bumptech.glide.** { *; }
-keep interface p.com.bumptech.glide.** { *; }

-keep class com.android.volley.** { *; }
-keep interface com.android.volley.** {*;}

-keep class com.navercorp.volleyextensions.** { *; }
-keep interface com.navercorp.volleyextensions.** { *; }

-keep class p.android.support.v4.util.Pair.** { *; }
-keep interface p.android.support.v4.util.Pair.** { *; }

-keep class p.android.support.v4.** { *; }
-keep interface p.android.support.v4.** { *; }


-keep class com.squareup.** { *; }
-keep interface com.squareup.** { *; }

-keep class com.github.clans.fab.** { *; }

-dontwarn com.nhn.android.neoid.**
-dontwarn com.navercorp.volleyextensions.volleyer.response.parser.**

##---------------Begin: proguard configuration for Gson ----------
# Gson uses generic type information stored in a class file when working with fields. Proguard
# removes such information by default, so configure it to keep all of it.
-keepattributes Signature

# For using GSON @Expose annotation
-keepattributes *Annotation*

# Gson specific classes
-keep class sun.misc.Unsafe { *; }
#-keep class com.google.gson.stream.** { *; }

# Prevent proguard from stripping interface information from TypeAdapterFactory,
# JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter)
-keep class * implements com.google.gson.TypeAdapterFactory
-keep class * implements com.google.gson.JsonSerializer
-keep class * implements com.google.gson.JsonDeserializer

-keep class com.google.gson.Gson
##---------------End: proguard configuration for Gson ----------
Binary file not shown.
Binary file not shown.
Binary file not shown.
219 changes: 219 additions & 0 deletions sample/navercafesdk-sample-android-studio/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
#-dump ./proguard-dump.txt
#printseeds ./proguard-seeds.txt
#-printusage ./proguard-unused.txt
#-printmapping ./proguard-mapping.txt

-dontshrink
-dontoptimize
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-ignorewarnings
-keepattributes SourceFile, LineNumberTable, *Annotation*, Signature, EnclosingMethod, InnerClasses, EnclosingMethod

-keep class com.nhn.** { *; }
-keep class p.android.support.v7.** { *; }
-keep interface p.android.support.v7.** { *; }
-keep class p.android.support.** { *; }
-keep interface p.android.support.** { *; }
-keep class com.navercorp.volleyextensions.** { *; }
-keep interface com.navercorp.volleyextensions.** { *; }
-keep class google.gson.** { *; }
-keep interface google.gson.** { *; }
-keep enum google.gson.** { *; }
-keep class p.com.bumptech.glide.** { *; }
-keep interface p.com.bumptech.glide.** { *; }
-keep class com.squareup.** { *; }
-keep interface com.squareup.** { *; }

-keep class p.android.support.v4.** { *; }
-keep interface p.android.support.v4.** { *; }

-keep class p.android.support.v4.util.Pair.** { *; }
-keep interface p.android.support.v4.util.Pair.** { *; }

-keep class com.android.volley.** { *; }
-keep interface com.android.volley.** {*;}

-keep class android.net.** { *; }
-keep class org.** { *; }
-keep interface org.** { *; }
-keep class com.fasterxml.jackson.** { *; }

#--G-LINK SDK
-keep class com.naver.plug.core.api.** {
*;
}


-keep class com.naver.plug.core.api.** {*;}

-keepclassmembers class com.naver.plug.core.api.** {
<fields>;
<methods>;
}

-keepclassmembers class com.naver.plug.cafe.api.** {
<fields>;
}


-keep class com.naver.vapp.broadcast.publisher.** {*;}
-keepclassmembers class com.naver.vapp.broadcast.publisher.** {
<fields>;
}



-keepparameternames
-keep class com.naver.glink.android.sdk.Glink {*;}
-keep interface com.naver.glink.android.sdk.Glink {*;}
-keep interface com.naver.glink.android.sdk.Glink$* {*;}
-keep class com.naver.plug.cafe.model.** {*;}
-keepclassmembers class com.naver.plug.cafe.model.** {*;}

-keep class com.naver.plug.cafe.ui.ItemsDialogFragment {*;}
-keep interface com.naver.plug.cafe.ui.ItemsDialogFragment$* {*;}
-keep class com.naver.plug.cafe.ui.ItemsDialogFragment$* {*;}

-keep class com.naver.glink.android.sdk.samsung.SPlug {*;}
-keep interface com.naver.glink.android.sdk.samsung.SPlug {*;}
-keep interface com.naver.glink.android.sdk.samsung.SPlug$* {*;}

-keep class com.naver.plug.moot.api.response.** {*;}
-keep class com.naver.plug.moot.model.** {*;}
-keep class com.naver.plug.moot.ui.write.model.** {*;}
-keep class com.nhncorp.nelo2.android.** {*;}
#-keep class com.naver.plug.cafe.model.WritingArticle {*;}
#-keep class com.naver.plug.cafe.model.WritingArticle$Builder {*;}

-keep public class **.R {
public *;
}
-keep public class **.R$* {
public *;
}


##---------------Begin: proguard configuration for Common Android ----------
# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
-keepclasseswithmembernames class * {
native <methods>;
}

# keep setters in Views so that animations can still work.
# see http://proguard.sourceforge.net/manual/examples.html#beans
-keepclassmembers public class * extends android.view.View {
void set*(***);
*** get*();
}

# We want to keep methods in Activity that could be used in the XML attribute onClick
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}

# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}

-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}

-keepclassmembers class **.R$* {
public static <fields>;
}

-keep public class * extends android.view.View {
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
public void set*(...);
}

-keepclasseswithmembers public class * extends android.preference.Preference {
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
public void set*(...);
}

-keepclassmembers class * implements android.os.Parcelable {
static android.os.Parcelable$Creator CREATOR;
}

-keepclassmembers class * {
@android.webkit.JavascriptInterface *;
}

-keep class * implements java.io.Serializable { *; }

##---------------End: proguard configuration for Common Android ----------



## Google Play Services 4.3.23 specific rules ##
## https://developer.android.com/google/play-services/setup.html#Proguard ##

-keep class * extends java.util.ListResourceBundle {
protected java.lang.Object[][] getContents();
}

-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable {
public static final *** NULL;
}

-keepnames @com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * {
@com.google.android.gms.common.annotation.KeepName *;
}

-keepnames class * implements android.os.Parcelable {
public static final ** CREATOR;
}

## GSON 2.2.4 specific rules ##

# Gson uses generic type information stored in a class file when working with fields. Proguard
# removes such information by default, so configure it to keep all of it.

# For using GSON @Expose annotation
# Gson specific classes

-keep class sun.misc.Unsafe { *; }
-keep class com.google.gson.stream.** { *; }

-keepclassmembers class com.google.gson.** {
<fields>;
<methods>;
}


-keep class com.google.gson.** { *; }
-keep interface com.google.gson.** { *; }


#--dontwarn
-dontwarn org.**
-dontwarn com.fasterxml.jackson.**
-dontwarn com.nhn.android.login.**
-dontwarn com.nhn.android.naverlogin.**
-dontwarn com.nhn.android.maps.**
-dontwarn roboguice.**
-dontwarn net.sf.cglib.**
-dontwarn com.nhncorp.**
-dontwarn com.nhn.nni.**
-dontwarn com.nhn.npush.**
-dontwarn com.nhn.android.inappwebview.**
-dontwarn android.**

-dontwarn java.lang.invoke.*
-dontwarn **$$Lambda$*

-dontwarn com.google.gson.**
-dontnote com.google.gson.**
-dontnote org.**
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
49 changes: 49 additions & 0 deletions sample/navercafesdk-sample-android-studio/libraries/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 23

defaultConfig {
minSdkVersion 17
targetSdkVersion 23
versionCode 1
versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

sourceSets { main { aidl.srcDirs = ['src/main/aidl/'] } }

lintOptions {
abortOnError false
}

buildTypes {
release {

}

sdkRelease {


}

debug {

}
}


}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.naver.glink.android.libraries" />
Loading

0 comments on commit 5d5e6e0

Please sign in to comment.