<commit_before># DroidNubeKit
An Apple's CloudKit library for Android. If you have an iOS App with CloudKit now you can use the contents on Android too.

It's like dancing with the devil.

## Set-Up
### Configure AndroidManifest.xml

You have to add the activity definition to Android Manifest. This activity opens a WebView to do the authentication with CloudKit

	<activity android:name="net.moddity.droidnubekit.ui.DNKWebViewAuthActivity" />
	
### Init DroidNubeKit

From your main activity

	DroidNubeKit.initNube(
                "YOUR TOKEN", //your api token
                "iCloud.net.moddity.<PASSWORD>",
                DroidNubeKitConstants.kEnvironmentType.kDevelopmentEnvironment, //development or production
                this
        );
        
## Configure your models

The models must extend <b>DNKObject</b> and uses annotations to give knowledge of your schema to the lib.

###Annotations
This project uses annotations to know some things about your scheme

	//Defines the recordtype. Must match one on CloudKit dashboard.
	@RecordType("Name")

	//The record ID
	@RecordName
	
	//Defines one field and his type. Ex: @CKField(DNKFieldTypes.STRING) 
	@CKField(DNKFieldTypes)
	
	//A list of objects references AKA: REFERENCE_LIST Ex: @CKReference(CarExtras.class) 
	@CKReference(Class)


An example of a car model will be:

	@RecordType("Car")
	public class Car extends DNKObject implements Serializable {

    	@RecordName
    	public String carID;
    	
    	@CKField(DNKFieldTypes.REFERENCE)<commit_msg>Fix broken Markdown headings<commit_after># DroidNubeKit
An Apple's CloudKit library for Android. If you have an iOS App with CloudKit now you can use the contents on Android too.

It's like dancing with the devil.

## Set-Up
### Configure AndroidManifest.xml

You have to add the activity definition to Android Manifest. This activity opens a WebView to do the authentication with CloudKit

	<activity android:name="net.moddity.droidnubekit.ui.DNKWebViewAuthActivity" />
	
### Init DroidNubeKit

From your main activity

	DroidNubeKit.initNube(
                "YOUR TOKEN", //your api token
                "iCloud.net.moddity.<PASSWORD>",
                DroidNubeKitConstants.kEnvironmentType.kDevelopmentEnvironment, //development or production
                this
        );
        
## Configure your models

The models must extend <b>DNKObject</b> and uses annotations to give knowledge of your schema to the lib.

### Annotations
This project uses annotations to know some things about your scheme

	//Defines the recordtype. Must match one on CloudKit dashboard.
	@RecordType("Name")

	//The record ID
	@RecordName
	
	//Defines one field and his type. Ex: @CKField(DNKFieldTypes.STRING) 
	@CKField(DNKFieldTypes)
	
	//A list of objects references AKA: REFERENCE_LIST Ex: @CKReference(CarExtras.class) 
	@CKReference(Class)


An example of a car model will be:

	@RecordType("Car")
	public class Car extends DNKObject implements Serializable {

    	@RecordName
    	public String carID;
    	
    	@CKField(DNKFieldTypes.REFERENCE)
{'fraction_non_alphanumeric': 0.07235984354628422, 'fraction_numerical': 0.0, 'mean_word_length': 3.4802919708029196, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1805547', 'n_tokens_mistral': 928, 'n_tokens_neox': 868, 'n_words': 324}