GreenDao custom type converter and code obfuscation configuration in the Android ORM series, ormgreendao
Sometimes, our entity classes have some attributes, but there is no corresponding type in the database. In this case, we need to customize the converter for type conversion. The most common processing is the Date type. Generally, if the precision requirement is not high, the data will be converted to th
generatedtype = schema.addEntity("Demo");type.addStringProperty("test").customType("java.util.Date","cn.edu.zafu.greendao.db.converter.DateStringConverter");AddProperty is the corresponding type in the database, where we store it as a string, so it is addstringproperty, and then through the customtype function to specify the type of the entity class, here is Java.util.Date, followed by the full class name of our type converter. Then try inserting a piece of data into the database, and we'll fi
I am on the blog to publish some of my Android learning experience, I hope that everyone can help.This article tells us about how to confuse Android in the latest ADT environment.在新版本号的ADT创建项目时。混码的文件不再是proguard.cfg。 而是project.properties和proguard-project.txt。 我们把之前配置都配置好了。proguard已经在包括在sdk中了。Environment Configuration Reference Android learning experience (1)---Android environment under Mac build假设须要对项目进行全局混码,仅仅须要进行一步操作:将project.properties的中“#proguard.config=${sdk.dir}/tools/proguard/proguard-andr
class javax.**-keep public class android.webkit.**
-keep class com.facebook.**-keep class com.umeng.scrshot.**-keep public class com.tencent.** {*;}-keep class com.umeng.socialize.sensor.**
-keep class Com.tencent.mm.sdk.openapi.WXMediaMessage {*;}
-keep class com.tencent.mm.sdk.openapi.** implements Com.tencent.mm.sdk.openapi.wxmediamessage$imediaobject {*;}
-keep class Im.yixin.sdk.api.YXMessage {*;}-keep class im.yixin.sdk.api.** implements im.yixin.sdk.api.yxmessage$yxmessagedata{*;
Today, with the use of code confusion, the app can not run after the confusion, the old error, because the project only used afinal third-party library, so according to the answer on the Internet to not confuse afinal jar package, in the configuration file write the following statement:-libraryjars Libs/afinal_0.5.1_bin.jar-dontwarn net.tsz.afinal.**-keep class net.tsz.afinal.** {*;}-keep public class * Extends net.tsz.afinal.** -keep public interfac
Android.app.Service-keep public class * extends Android.content.BroadcastReceiver-keep public class * extends Android.content.ContentProvider-keep public class * extends Android.preference.Preference-keep public class Com.android.vending.licensing.ILicensingService-keep public class * extends Android.app.backup.BackupAgentHelper-keep public class * extends Android.preference.Preference-keepclassmembers class * Implements Java.io.Serializable {Static final long serialversionuid;private static fi
(); t.test(); }}You will see the output of the log.Note If the corresponding version of Java is not specified in Gradle, the runtime may errortasks.withType(JavaCompile) { //指定编译JDK版本 sourceCompatibility = JavaVersion.VERSION_1_7 targetCompatibility = JavaVersion.VERSION_1_7 }The error message is as follows, the error is encountered and the above code can beFinally, debugging is the problem, in theory
Oracle 10g new features-code obfuscation
Author: Fuyuncat
Source: www.HelloDBA.com
Oracle 9i Previously, a command ' warp ' was provided to encrypt the code. But it's command-line, it's script-oriented. In 10g, Oracle Package DBMS_DDL provides a new function create_wrapped to confuse the code. Example:Sql>
# to enable Proguard in your project, edit project.properties# to define the Proguard.config property as described file.## ADD Project specific Proguard rules here.# by default, the ' flags in ' This file is appended to ' flags specified# in ${sdk.dir}/tools/proguard/proguard-android.txt# You can edit the include path and order by changing the proguard# include Property in project.properties.## to more details, see# Http://developer.android.com/guide/developing/tools/proguard . html# ADD any p
Tags: Android blog HTTP ar file SP 2014 Problem C================================= Problem description ========================== =To confuse the code, simply remove the comments from the Internet. However, I found that there is no proguard folder under the Tools Folder of my android SDK. My name is adt23 64-bit. Can someone copy it to me? Thank you. Email: [email protected] =============================== Solution 1 ========================== ===It h
Release date:Updated on: 2013-04-23
Affected Systems:Oracle Java Description:--------------------------------------------------------------------------------JAVA is an object-oriented programming language that can write cross-platform applications.Java and earlier versions have the type Obfuscation Vulnerability, which can cause arbitrary code to run outside the Java sandbox.Link: http://weblog.ikvm.net/Pe
GreenDao custom type converter and code obfuscation configuration in the Android ORM Series
Sometimes, our entity classes have some attributes, but there is no corresponding type in the database. In this case, we need to customize the converter for type conversion. The most common processing is the Date type. Generally, if the precision requirement is not high, the data will be converted to the Long type fo
-keepnames class * Implements java.io.serializable# hold SerialiZable is not confused and the Enum class is not confused-keepclassmembers class * Implements Java.io.Serializable {static final long serialversionuid; private static final java.io.objectstreamfield[] Serialpersistentfields; private void WriteObject (Java.io.ObjectOutputStream); private void ReadObject (Java.io.ObjectInputStream); Java.lang.Object Writereplace (); Java.lang.Object readresolve ();} #保持枚举enum类不被混淆-keepclass
One, Android Studio create. 9 file Note: find a PNG image with a transparent background, change the file name to "Xxxx.9.png" and place it in the drawable file, double-click Note: One case is to use someone else's. 9 File (see)Note: Finally compile, see if you can compile successfully! , only the qualified. 9 images will be compiled through.(some PNG images cannot be changed.) 9 pics, don't know why? ) Second, the APK packaging processAndroid Learning Note--9 Pictures +
Cloudera Impala is an open source MPP (massive parallel processing) database built for the Hadoop ecosystem, designed primarily for analytic query payloads rather than OLTP. Impala has the latest technology to maximize the use of modern hardware and efficient query execution. Run-time code generation under LLVM is one of the techniques used to improve execution performance. LLVMIntroductionLLVM is a library
have a more profound understanding of the source code, but this understanding is only superficial, down we from 6 aspects of the specific to analyze it:
1. The entry structure and the specific implementation of the page invocation method, if you see the tool class and tool functions, try to familiarize yourself with it. Analyze the tool classes and tool functions used in the source code, so you can learn
longer. But it also means more efficient (often closer to lower-level code readability and higher performance, for example: compilation, which of course requires more powerful talent). Keep in mind that no framework can be smaller, lighter, and more efficient than native code (note: The test link is invalid and the test code can be searched online).Given the per
the jquery website CDN).Combine jquery and JavaScript native code if necessaryAs mentioned above, jquery is JavaScript, which means that what you can do with jquery can also be done using native code. Native code (or vanilla) may be less readable and maintainable than jquery, and the code is longer. But it also means
This article outlines: Special annotation technology in the code--todo, Fixme and the use of XXX.Objective:Today when reading the source code of Qt Creator, found some comments have fixme English words, in English dictionary actually can't find its meaning!In fact, when we read some open source code, we often encounter words such as TODO, fixme, and XXX, which ha
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.