GitXplorerGitXplorer
s

iOS-J2ObjC-DisplayingBitmaps

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
e61d1ca2c2ca66c981dc92df77fc0635caac2147

GridView works, J2ObjC integration

ssfuku7 committed 9 years ago
Unverified
cd600892aabbb50cc3db6104ec35b89ff1ab3fa2

added translated code with J2ObjC

ssfuku7 committed 9 years ago
Unverified
b1eeb60424b29ac6980a21d17efdbacd2f30183e

translate shared Java files to Objective-C

ssfuku7 committed 9 years ago
Unverified
8604fa4ff3b92bedf50be7ae6c54e68aeca718d9

import Apple sample code, CollectionView-Simple

ssfuku7 committed 9 years ago
Unverified
66d1c7a082a7e9305a6dac12f7999d7d679fae02

added Android repo

ssfuku7 committed 9 years ago
Unverified
cec4c64c75828ee3f85b4816023ed5aa84c09f44

Initial commit

ssfuku7 committed 9 years ago

README

The README file for this repository.

iOS-J2ObjC-DisplayingBitmaps

This project shows a sample to share code between Android application and iOS application with [J2ObjC] (https://github.com/google/j2objc) which is translation tool from Google.

License

See LICENSE.

And this project uses below projects with modifications, you can find software license in each projects

And this project links JRE emulation which is built with J2ObjC, see https://github.com/google/j2objc.

Build Requirements

Build and Run

  1. Build and install J2ObjC, see https://github.com/google/j2objc. Just do 'make dist'.
  2. Open project 'ios/CollectionView.xcodeproj' with Xcode
  3. Set 'j2ojc_distribution' variable.
  4. Open project 'CollectionView'
  5. Select 'Build Settings'
  6. Find 'j2ojc_distribution'
  7. Set 'j2ojc_distribution' as your J2ObjC distribution path.
  8. Push the 'build and run' button of Xcode

How to translate with J2ObjC

Translated codes are already included in this project. But you can try translation from Java to Objective-C with below steps.

$ cd android
$ git submodule init
Submodule 'android' (git@github.com:sfuku7/android-DisplayingBitmaps.git) registered for path '../android'
$ git submodule update
$ cd ../
$ J2OBJC_DISTRIBUTION=/path/to/j2objc/dist make