Skip to content

Instantly share code, notes, and snippets.

View Sanaebadi97's full-sized avatar
☹️
A tired girl

Sana Ebadi Sanaebadi97

☹️
A tired girl
View GitHub Profile
@Sanaebadi97
Sanaebadi97 / proguard-rules.pro
Created October 11, 2022 15:35 — forked from jemshit/proguard-rules.pro
Proguard Rules for Android libraries
# 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 *;
}
### RxJava, RxAndroid (https://gist.github.com/kosiara/487868792fbd3214f9c9)
-keep class rx.schedulers.Schedulers {
public static <methods>;
@Sanaebadi97
Sanaebadi97 / clean_code.md
Created November 3, 2021 10:42 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

keytool -importcert -file example.crt -alias examplecrt -keystore ~/JDK/jre/lib/security/cacerts
keytool -printcert -rfc -sslserver (your company repository)
keytool -list -trustcacerts -keystore ~/JDK/jre/lib/security/cacerts
keytool -import -alias example -keystore “C:\Program Files (x86)\Java\jre1.6.0_22\lib\security\cacerts” -file example.cer
after_all do |lane|
slack(
message: "successful deploy :rocket:"
)
end
error do |lane, exception|
slack(
message: exception.message,
success:false
defualt_platforom(:android)
platform : android do
before_all do
ENV["SLACK_URL] ="web hook url"
end
lane :slack_build do
gradle(task: "assembleRelease")
slack(message: "Build Successful!")
upload_to_slack()
end
desc "abcabcacb..."
lane : lane_name do
some commands
end
--------------
**And the main body is as follows:**
defualt_platforom(:android)
fastlane init