-
Notifications
You must be signed in to change notification settings - Fork 9
Installation
Depending on the development environment or compiler you prefer to use there are some specific installation steps (described later in this readme), however independently of the IDE/compiler there are some common installation steps, too.
Declare the Nativer SDK's service in the manifest file in your application:
Copy the following text sequence, and paste it into the AndroidManifest.xml file of your project.
<service android:name="com.transround.plugin.service.PluginInterfaceService" >
<intent-filter>
<action android:name="com.transround.tools.PING" />
<category android:name="com.transround.tools.TRANSLATOR" />
</intent-filter>
</service>
<activity android:name="com.transround.plugin.activity.RefreshScreen" android:exported="true"/>
Please be careful, and make sure the above text is copied into your manifest file before the </application>
closing tag declaration.
Please also make sure you have the following text outside the section:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Nativer-sdk uses Aspectj so you have to use Aspectdroid plugin to compile your android project with AspectJ's compiler. If you would like to learn more about why AspectJ is used please check our wiki about How to integrate Nativer SDK.
-
Add aspectdroid plugin
Complete the buildscript section of your project's build file:
buildscript { ext { aspectjVersion = '1.8.2' } repositories { mavenCentral() // repository for aspectdroid plugin maven { url "http://www.transround.com/repositories/public/" } } dependencies { classpath 'com.android.tools.build:gradle:0.13.+' classpath 'com.transround:aspectdroid:1.0.+' } }
Apply the
aspectdroid
plugin:apply plugin: 'aspectdroid'
-
Add nativer-sdk library
Use our maven repository:
repositories { mavenCentral() maven { url "http://www.transround.com/repositories/public/" } }
Add nativer-sdk dependency:
dependencies { compile 'com.transround:nativer-sdk:1.0.+' }