-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
package com.translationsdk | ||
|
||
import android.app.Application | ||
import android.util.Log | ||
import com.devnagritranslationsdk.DevNagriTranslationSdk | ||
|
||
|
||
class BaseApplication : Application() { | ||
|
||
override fun onCreate() { | ||
super.onCreate() | ||
|
||
val strings=R.string::class.java.fields.map { it.name } | ||
val arrays=R.array::class.java.fields.map { it.name } | ||
|
||
|
||
val API_KEY="devnagri_9b3a4902cd4111ecbb6002bf838402f8" | ||
DevNagriTranslationSdk.init(applicationContext,API_KEY,strings,arrays) | ||
|
||
|
||
val strings=R.string::class.java.fields | ||
val arrays=R.array::class.java.fields | ||
val API_KEY="<Enter Your API Key Here>" | ||
Log.d("DevNagriSDK_TAG", "Start init process") | ||
DevNagriTranslationSdk.init(applicationContext,API_KEY,10,strings,arrays, null, initListener = {isInitialized, error -> | ||
Log.d("DevNagriSDK_TAG", "Complete init process") | ||
} ) | ||
} | ||
|
||
} |